summaryrefslogtreecommitdiff
path: root/db/write_batch_test.cc
diff options
context:
space:
mode:
Diffstat (limited to 'db/write_batch_test.cc')
-rw-r--r--db/write_batch_test.cc23
1 files changed, 0 insertions, 23 deletions
diff --git a/db/write_batch_test.cc b/db/write_batch_test.cc
index deb8411..2bf1134 100644
--- a/db/write_batch_test.cc
+++ b/db/write_batch_test.cc
@@ -29,13 +29,6 @@ static std::string PrintContents(WriteBatch* b) {
state.append(iter->value().ToString());
state.append(")");
break;
- case kTypeLargeValueRef:
- state.append("PutRef(");
- state.append(ikey.user_key.ToString());
- state.append(", ");
- state.append(iter->value().ToString());
- state.append(")");
- break;
case kTypeDeletion:
state.append("Delete(");
state.append(ikey.user_key.ToString());
@@ -74,22 +67,6 @@ TEST(WriteBatchTest, Multiple) {
PrintContents(&batch));
}
-TEST(WriteBatchTest, PutIndirect) {
- WriteBatch batch;
- batch.Put(Slice("baz"), Slice("boo"));
- LargeValueRef h;
- for (int i = 0; i < LargeValueRef::ByteSize(); i++) {
- h.data[i] = (i < 20) ? 'a' : 'b';
- }
- WriteBatchInternal::PutLargeValueRef(&batch, Slice("foo"), h);
- WriteBatchInternal::SetSequence(&batch, 100);
- ASSERT_EQ(100, WriteBatchInternal::Sequence(&batch));
- ASSERT_EQ(2, WriteBatchInternal::Count(&batch));
- ASSERT_EQ("Put(baz, boo)@100"
- "PutRef(foo, aaaaaaaaaaaaaaaaaaaabbbbbbbbb)@101",
- PrintContents(&batch));
-}
-
TEST(WriteBatchTest, Corruption) {
WriteBatch batch;
batch.Put(Slice("foo"), Slice("bar"));