diff options
| author | Matthias Radestock <matthias@rabbitmq.com> | 2011-03-04 17:22:18 +0000 |
|---|---|---|
| committer | Matthias Radestock <matthias@rabbitmq.com> | 2011-03-04 17:22:18 +0000 |
| commit | ee281b1d5bc164a0395d037f91ef7aec550065da (patch) | |
| tree | 3baac6951b810576faa4df1460b89d359931c3d8 /include | |
| parent | e0fb813eb903254369d616f67861de420aef4b4c (diff) | |
| download | rabbitmq-server-git-ee281b1d5bc164a0395d037f91ef7aec550065da.tar.gz | |
introduce separate type for msg ids
and add some auxiliary types for fun params to a) make their purpose
clearer, and b) work around emacs indentation bugs
Diffstat (limited to 'include')
| -rw-r--r-- | include/rabbit_msg_store_index.hrl | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/include/rabbit_msg_store_index.hrl b/include/rabbit_msg_store_index.hrl index 289f8f607d..2ae5b0009d 100644 --- a/include/rabbit_msg_store_index.hrl +++ b/include/rabbit_msg_store_index.hrl @@ -29,13 +29,13 @@ -spec(new/1 :: (dir()) -> index_state()). -spec(recover/1 :: (dir()) -> rabbit_types:ok_or_error2(index_state(), any())). -spec(lookup/2 :: - (rabbit_guid:guid(), index_state()) -> ('not_found' | keyvalue())). + (rabbit_types:msg_id(), index_state()) -> ('not_found' | keyvalue())). -spec(insert/2 :: (keyvalue(), index_state()) -> 'ok'). -spec(update/2 :: (keyvalue(), index_state()) -> 'ok'). --spec(update_fields/3 :: (rabbit_guid:guid(), ({fieldpos(), fieldvalue()} | - [{fieldpos(), fieldvalue()}]), +-spec(update_fields/3 :: (rabbit_types:msg_id(), ({fieldpos(), fieldvalue()} | + [{fieldpos(), fieldvalue()}]), index_state()) -> 'ok'). --spec(delete/2 :: (rabbit_guid:guid(), index_state()) -> 'ok'). +-spec(delete/2 :: (rabbit_types:msg_id(), index_state()) -> 'ok'). -spec(delete_object/2 :: (keyvalue(), index_state()) -> 'ok'). -spec(delete_by_file/2 :: (fieldvalue(), index_state()) -> 'ok'). -spec(terminate/1 :: (index_state()) -> any()). |
