diff options
author | felipeg@chromium.org <felipeg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-04 04:53:15 +0000 |
---|---|---|
committer | felipeg@chromium.org <felipeg@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-05-04 04:53:15 +0000 |
commit | c7e0e559d66682db27b8c3e246502568ed0001c4 (patch) | |
tree | 35b8aa22febe6a95fbd24b068a9d5e81fd4bc9dd /.gitmodules | |
parent | d198186f8038fb81ec78a01515fd6922d2b1e2ce (diff) | |
download | chromium_src-c7e0e559d66682db27b8c3e246502568ed0001c4.zip chromium_src-c7e0e559d66682db27b8c3e246502568ed0001c4.tar.gz chromium_src-c7e0e559d66682db27b8c3e246502568ed0001c4.tar.bz2 |
Support optimistic Create and Write operations on the SimpleCache.
On CreateEntry we return net::OK immediately while issuing a WorkerPool thread to create the files.
If the file creation fails, we will fail every next operation in the same entry.
If another (read or write) operation is called in that entry before the completion of the creation, that entry is enqueued and we return IO_PENDING.
The same happens to the WriteData operation.
If the WriteData is called in an entry that does not have any operation in progress, we return buf_len immediately and issue a WorkerPool to write the data in the background.
If the WriteData operation fails every next operation will fail.
If we receive another Read/Write operation while the WriteData background operation did not complete, we always enqueue the operation and return IO_PENDING.
BUG=173400
Review URL: https://chromiumcodereview.appspot.com/13907009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@198286 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to '.gitmodules')
0 files changed, 0 insertions, 0 deletions