Skip to content

Commit 67923ea

Browse files
committed
update comment
Signed-off-by: Vladislav Oleshko <[email protected]>
1 parent 8d5938f commit 67923ea

File tree

3 files changed

+5
-4
lines changed

3 files changed

+5
-4
lines changed

src/core/compact_object.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -534,16 +534,16 @@ class CompactObj {
534534
union {
535535
uint8_t mask_ = 0;
536536
struct {
537-
uint8_t ref : 1; // Mark objects that have expiry timestamp assigned.
538-
uint8_t expire : 1;
537+
uint8_t ref : 1; // Mark objects that don't own their allocation.
538+
uint8_t expire : 1; // Mark objects that have expiry timestamp assigned.
539539
uint8_t mc_flag : 1; // Marks keys that have memcache flags assigned.
540540

541541
// See the EncodingEnum for the meaning of these bits.
542542
uint8_t encoding : 2;
543543

544544
// IO_PENDING is set when the tiered storage has issued an i/o request to save the value.
545545
// It is cleared when the io request finishes or is cancelled.
546-
uint8_t io_pending : 1; // also serves as async-delete for keys.
546+
uint8_t io_pending : 1;
547547
uint8_t sticky : 1;
548548

549549
// TOUCHED used to determin which items are hot/cold.

src/server/db_slice.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -325,6 +325,7 @@ class DbSlice {
325325
// Deletes the iterator. The iterator must be valid.
326326
// Context argument is used only for document removal and it just needs
327327
// timestamp field. Last argument, db_table, is optional and is used only in FlushSlotsCb.
328+
// If async is set, AsyncDeleter will enqueue deletion of the object
328329
void Del(Context cntx, Iterator it, DbTable* db_table = nullptr, bool async = false);
329330

330331
// Deletes a key after FindMutable(). Runs post_updater before deletion

src/server/generic_family.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1111,7 +1111,7 @@ OpResult<uint32_t> GenericFamily::OpDel(const OpArgs& op_args, const ShardArgs&
11111111
if (!IsValid(it))
11121112
continue;
11131113

1114-
db_slice.Del(op_args.db_cntx, it, aync);
1114+
db_slice.Del(op_args.db_cntx, it, async);
11151115
++res;
11161116
}
11171117

0 commit comments

Comments
 (0)