Skip to content

Commit

Permalink
flush transport after store operation
Browse files Browse the repository at this point in the history
  • Loading branch information
cameronjacobson committed Feb 20, 2015
1 parent 1a8992b commit 4dd31ba
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 1 deletion.
1 change: 1 addition & 0 deletions src/Phreezer/Storage.php
Expand Up @@ -154,6 +154,7 @@ public function store($object, callable $cb = null)
}
else{
$this->doStore($this->freezer->freeze($object));
$this->transport->flush();
return $object->__phreezer_uuid;
}
}
Expand Down
1 change: 0 additions & 1 deletion src/Phreezer/Storage/CouchDB.php
Expand Up @@ -228,7 +228,6 @@ protected function doStore(array $frozenObject)
'/' . $this->database . '/_bulk_docs',
json_encode($payload)
);

if ((strpos($response['headers'], 'HTTP/1.0 201 Created') !== 0)
&& (strpos($response['headers'], 'HTTP/1.0 200 OK') !== 0)) {
// @codeCoverageIgnoreStart
Expand Down

0 comments on commit 4dd31ba

Please sign in to comment.