Skip to content

Commit 793a949

Browse files
committed
MB-27554: [BP] Add descriptions to magic StoredValue::bySeqno values
Originally adf2397 Change-Id: Ifeef3f4189623b668816e2c2fa9ce5742b0c85fa Reviewed-on: http://review.couchbase.org/88376 Well-Formed: Build Bot <[email protected]> Tested-by: Build Bot <[email protected]> Reviewed-by: Dave Rigby <[email protected]>
1 parent fe355bc commit 793a949

File tree

1 file changed

+19
-11
lines changed

1 file changed

+19
-11
lines changed

engines/ep/src/stored-value.h

Lines changed: 19 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -537,21 +537,29 @@ class StoredValue {
537537
/*
538538
* Values of the bySeqno attribute used by temporarily created StoredValue
539539
* objects.
540-
* state_deleted_key: represents an item that's deleted from memory but
541-
* present in the persistent store.
542-
* state_non_existent_key: represents a non existent item
543-
* state_collection_open: a special value used by collections to help
544-
* represent a collections life-time in sequence-numbers (start to end).
545-
* If a collection has no end, it's termed open and has an end
546-
* sequence-number of StoredValue::state_collection_open. We do not
547-
* actually assign this value to StoredValue objects, but it's here in
548-
* this "number space" of special sequence numbers to help ensure it's
549-
* different to the other special sequence numbers we define.
550-
*
551540
*/
541+
542+
/// Represents an item that's deleted from memory but present on disk.
552543
static const int64_t state_deleted_key;
544+
545+
/// Represents a non existent item
553546
static const int64_t state_non_existent_key;
547+
548+
/**
549+
* Represents a placeholder item created to mark that a bg fetch operation
550+
* is pending.
551+
*/
554552
static const int64_t state_temp_init;
553+
554+
/**
555+
* A special value used by collections to help represent a collections
556+
* life-time in sequence-numbers (start to end). If a collection has no
557+
* end, it's termed open and has an end sequence-number of
558+
* StoredValue::state_collection_open. We do not actually assign this
559+
* value to StoredValue objects, but it's here in this "number space" of
560+
* special sequence numbers to help ensure it's different to the other
561+
* special sequence numbers we define.
562+
*/
555563
static const int64_t state_collection_open;
556564

557565
/**

0 commit comments

Comments
 (0)