|
|
@ -155,6 +155,12 @@ class WriteBatchWithIndex : public WriteBatchBase { |
|
|
|
// The returned iterator should be deleted by the caller.
|
|
|
|
// The returned iterator should be deleted by the caller.
|
|
|
|
// The base_iterator is now 'owned' by the returned iterator. Deleting the
|
|
|
|
// The base_iterator is now 'owned' by the returned iterator. Deleting the
|
|
|
|
// returned iterator will also delete the base_iterator.
|
|
|
|
// returned iterator will also delete the base_iterator.
|
|
|
|
|
|
|
|
//
|
|
|
|
|
|
|
|
// Updating write batch with the current key of the iterator is not safe.
|
|
|
|
|
|
|
|
// We strongly recommand users not to do it. It will invalidate the current
|
|
|
|
|
|
|
|
// key() and value() of the iterator. This invalidation happens even before
|
|
|
|
|
|
|
|
// the write batch update finishes. The state may recover after Next() is
|
|
|
|
|
|
|
|
// called.
|
|
|
|
Iterator* NewIteratorWithBase(ColumnFamilyHandle* column_family, |
|
|
|
Iterator* NewIteratorWithBase(ColumnFamilyHandle* column_family, |
|
|
|
Iterator* base_iterator); |
|
|
|
Iterator* base_iterator); |
|
|
|
// default column family
|
|
|
|
// default column family
|
|
|
|