diff options
author | Sascha Silbe <sascha-org-sugar-git@silbe.org> | 2009-10-16 00:01:44 (GMT) |
---|---|---|
committer | Sascha Silbe <sascha-org-sugar-git@silbe.org> | 2009-10-16 00:01:44 (GMT) |
commit | f79e7619d6561d46642f8752a1c6fcb19a0faa30 (patch) | |
tree | f0f4546c1b8b44748e99b08807e91331ecf262e9 | |
parent | 1ac7ff9d885aef43f5cf56534121094a704d7949 (diff) |
make save() and get_data() synchronous
-rw-r--r-- | datastore-redesign.html | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/datastore-redesign.html b/datastore-redesign.html index e53f760..585e3b2 100644 --- a/datastore-redesign.html +++ b/datastore-redesign.html @@ -339,8 +339,8 @@ with the same <code>tree_id</code> already in datastore. </p> <p> - Actual file storage and index update happen asynchronously, emitting the - signal <code>Saved(tree_id, parent_id, child_id)</code> on completion. + File storage happens synchronously, emitting the signal <code>Saved(tree_id, parent_id, child_id)</code> on + completion (i.e. before returning from save()). </p> <p> If <code>path</code> is non-empty it designates a file or directory containing the data and the @@ -367,8 +367,7 @@ <dt><code>get_data(tree_id, version_id)</code></dt> <dd>Hardlinks the given object into a global directory, making it readable (directories also - writable) to the caller. Returns the path after checking the entry for validity; actual data is written - asynchronously. + writable) to the caller. Fully synchronous. Emits signal <code>GotData(sender, tree_id, version_id, path)</code> where <code>sender</code> is the bus name of the sender. </dd> |