-
-
Notifications
You must be signed in to change notification settings - Fork 636
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[engine] bug fix: to pickle/unpickle within the proper context
We have two places that pickle and unpickle functions are not used within the proper context. * StringIO buffer for write, saving buffer to storage happens outside its context. * lmdb buffer for read, the invalid buffer was used outside transction context. The earlier attemp is probably red herring: https://rbcommons.com/s/twitter/r/3751/. Thanks Stu for catching! These two behaviors are clearly documented, see [1] and [2]. [1] https://docs.python.org/2/library/stringio.html [2] https://lmdb.readthedocs.org/en/release/ Testing Done: https://travis-ci.org/peiyuwang/pants/builds/125890340 passed. https://travis-ci.org/peiyuwang/pants/builds/125941151 passed. Bugs closed: 3149, 3274 Reviewed at https://rbcommons.com/s/twitter/r/3761/
- Loading branch information
Showing
2 changed files
with
41 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters