summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorMichael Cahill <michael.cahill@wiredtiger.com>2014-05-29 10:29:47 +1000
committerMichael Cahill <michael.cahill@wiredtiger.com>2014-05-29 10:29:47 +1000
commit8628a0a61e0f541aca3a429572442898dc7bf78a (patch)
tree67f9d9fdb7adddab6c0ec8196575893f3ff80329 /test
parent6cdb9769e9771f0200bb6d172435e3cde1e9c42e (diff)
downloadmongo-8628a0a61e0f541aca3a429572442898dc7bf78a.tar.gz
Add a Python test that values starting with the LSM tombstone can be inserted and retrieved.
refs #1032
Diffstat (limited to 'test')
-rw-r--r--test/suite/test_lsm02.py10
1 files changed, 10 insertions, 0 deletions
diff --git a/test/suite/test_lsm02.py b/test/suite/test_lsm02.py
index 73b32261141..2b3d48f8f30 100644
--- a/test/suite/test_lsm02.py
+++ b/test/suite/test_lsm02.py
@@ -48,6 +48,16 @@ class test_lsm02(wttest.WiredTigerTestCase):
print 'Unexpected value from LSM tree'
cursor.close()
+ # Put some special values that start with the LSM tombstone
+ def test_lsm_tombstone(self):
+ self.session.create(self.uri, 'key_format=S,value_format=u')
+ v = '\x14\x14'
+ self.add_key(self.uri, 'k1', v)
+ self.verify_key_exists(self.uri, 'k1', v)
+ v += 'a' * 1000
+ self.add_key(self.uri, 'k2', v)
+ self.verify_key_exists(self.uri, 'k2', v)
+
def test_lsm_rename01(self):
self.session.create(self.uri, 'key_format=S,value_format=S')
self.add_key(self.uri, 'a', 'a')