Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Z
ZEO
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nexedi
ZEO
Commits
b0a8aa10
Commit
b0a8aa10
authored
Jul 12, 2009
by
Shane Hathaway
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Removed unnecessary dependencies on the storage's OID generation policy.
parent
c0e76eed
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
5 deletions
+5
-5
src/ZODB/tests/blob_transaction.txt
src/ZODB/tests/blob_transaction.txt
+5
-5
No files found.
src/ZODB/tests/blob_transaction.txt
View file @
b0a8aa10
...
@@ -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'))
['0x
03
-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'))
['0x
03
-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'))
['0x
03
-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'))
['0x
03
-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: 0x
06
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):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment