Commit c1f0d531 authored by Shane Hathaway's avatar Shane Hathaway

Removed unnecessary dependencies on the storage's OID generation policy.

parent 29fd4557
...@@ -235,7 +235,7 @@ Savepoints store the blobs in the `savepoints` directory in the temporary ...@@ -235,7 +235,7 @@ Savepoints store the blobs in the `savepoints` directory in the temporary
directory of the blob storage: directory of the blob storage:
>>> os.listdir(os.path.join(blob_dir, 'tmp', 'savepoints')) >>> os.listdir(os.path.join(blob_dir, 'tmp', 'savepoints'))
['0x03-0x....spb'] ['0x...-0x....spb']
>>> transaction.commit() >>> transaction.commit()
After committing the transaction, the temporary savepoint files are moved to After committing the transaction, the temporary savepoint files are moved to
...@@ -255,7 +255,7 @@ Again, the savepoint creates a new file for the blob state in the savepoints ...@@ -255,7 +255,7 @@ Again, the savepoint creates a new file for the blob state in the savepoints
directory: directory:
>>> os.listdir(os.path.join(blob_dir, 'tmp', 'savepoints')) >>> os.listdir(os.path.join(blob_dir, 'tmp', 'savepoints'))
['0x03-0x....spb'] ['0x...-0x....spb']
>>> root5['blob'].open("w").write(" And the weather is beautiful.") >>> root5['blob'].open("w").write(" And the weather is beautiful.")
>>> savepoint.rollback() >>> savepoint.rollback()
...@@ -263,7 +263,7 @@ directory: ...@@ -263,7 +263,7 @@ directory:
XXX Currently, savepoint state of blobs remains after a rollback: XXX Currently, savepoint state of blobs remains after a rollback:
>>> os.listdir(os.path.join(blob_dir, 'tmp', 'savepoints')) >>> os.listdir(os.path.join(blob_dir, 'tmp', 'savepoints'))
['0x03-0x....spb'] ['0x...-0x....spb']
>>> root5['blob'].open("r").read() >>> root5['blob'].open("r").read()
"I'm a happy blob. And I'm singing. And I'm dancing." "I'm a happy blob. And I'm singing. And I'm dancing."
...@@ -272,7 +272,7 @@ XXX Currently, savepoint state of blobs remains after a rollback: ...@@ -272,7 +272,7 @@ XXX Currently, savepoint state of blobs remains after a rollback:
XXX Currently, savepoint state of blobs remains even after an abort: XXX Currently, savepoint state of blobs remains even after an abort:
>>> os.listdir(os.path.join(blob_dir, 'tmp', 'savepoints')) >>> os.listdir(os.path.join(blob_dir, 'tmp', 'savepoints'))
['0x03-0x....spb'] ['0x...-0x....spb']
Reading Blobs outside of a transaction Reading Blobs outside of a transaction
-------------------------------------- --------------------------------------
...@@ -408,7 +408,7 @@ Similarly, the new object wasn't added to the storage: ...@@ -408,7 +408,7 @@ Similarly, the new object wasn't added to the storage:
>>> blob_storage.load(new_oid, '') >>> blob_storage.load(new_oid, '')
Traceback (most recent call last): Traceback (most recent call last):
... ...
POSKeyError: 0x06 POSKeyError: 0x...
>>> blob_storage.loadBlob(blob._p_oid, s2) >>> blob_storage.loadBlob(blob._p_oid, s2)
Traceback (most recent call last): Traceback (most recent call last):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment