/// <summary> /// Adds a delete operation for a key to a <see cref="WriteBatch"/>. These are not written /// to the store by this function, just added to the <see cref="WriteBatch"/>. /// </summary> private void AddDeleteOperation(WriteBatch writeBatch, ColumnFamilyInfo columnFamilyInfo, byte[] key) { writeBatch.Delete(key, columnFamilyInfo.Handle); if (columnFamilyInfo.UseKeyTracking) { writeBatch.Delete(key, columnFamilyInfo.KeyHandle); } }
/// <summary> /// Adds a put operation for a key to a <see cref="WriteBatch"/>. These are not written /// to the store by this function, just added to the <see cref="WriteBatch"/>. /// </summary> private static void AddPutOperation(WriteBatch writeBatch, ColumnFamilyInfo columnFamilyInfo, byte[] key, byte[] value) { writeBatch.Put(key, (uint)key.Length, value, (uint)value.Length, columnFamilyInfo.Handle); if (columnFamilyInfo.UseKeyTracking) { writeBatch.Put(key, s_emptyValue, columnFamilyInfo.KeyHandle); } }