mirror of
https://github.com/friendica/friendica
synced 2025-04-25 09:10:11 +00:00
Added Lock Unittests & Bugfixings
Added Redis Lock Unittests Added Memcached Lock Unittests Fixed a bug in dba Fixed a bug in RedisLock
This commit is contained in:
parent
e719a25082
commit
1ffe0cfd81
10 changed files with 114 additions and 70 deletions
|
@ -1109,7 +1109,7 @@ class dba {
|
|||
|
||||
// Split the SQL queries in chunks of 100 values
|
||||
// We do the $i stuff here to make the code better readable
|
||||
$i = $counter[$key_table][$key_condition];
|
||||
$i = isset($counter[$key_table][$key_condition]) ? $counter[$key_table][$key_condition] : 0;
|
||||
if (isset($compacted[$key_table][$key_condition][$i]) && count($compacted[$key_table][$key_condition][$i]) > 100) {
|
||||
++$i;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue