Skip to content

Commit

Permalink
x
Browse files Browse the repository at this point in the history
  • Loading branch information
parf committed May 7, 2014
1 parent 80276f7 commit 76ea0ab
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions M/Sequence.php
Expand Up @@ -82,11 +82,11 @@ static function reset($name, $val=false) { # null
return self::create($name, $val);
if ($val===false)
$val=self::lastDb($name);

self::MC($name)->update(
["_id" => (string) $name],
['$set' => ["val" => (int)$val]],
["safe" => true, "fsync" => true]
["w" => 1, "fsync" => true]
);
}

Expand All @@ -101,7 +101,7 @@ static function create($name, $val=false) { # void
if ($val === false)
$val=self::lastDb($name)+1;
self::MC($name)->insert(["_id" => $name, "val" => (int)$val-1],
["safe" => true, "fsync" => true]);
["w" => 1, "fsync" => true]);
#return M()->getLastError();
}

Expand Down

0 comments on commit 76ea0ab

Please sign in to comment.