OMG-By
6d2f1188ac
fix: dict.c->dictResize()->minimal type
2020-03-29 00:04:59 +08:00
zhaozhao.zz
9a1be653ad
PSYNC2: reset backlog_idx and master_repl_offset correctly
2020-03-28 20:59:01 +08:00
zhaozhao.zz
36ee294e83
PSYNC2: reset backlog_idx and master_repl_offset correctly
2020-03-28 20:59:01 +08:00
John Sully
4af17a23d8
Raspberry Pi fixes (compile and replication)
...
Former-commit-id: c3d3c82f3a1751f063a3e77b4bde47f1802a517e
2020-03-27 12:46:25 -04:00
John Sully
6283ca8a2c
Raspberry Pi fixes (compile and replication)
...
Former-commit-id: c3d3c82f3a1751f063a3e77b4bde47f1802a517e
2020-03-27 12:46:25 -04:00
antirez
aa3efaa1d2
timeout.c created: move client timeouts code there.
2020-03-27 16:35:03 +01:00
antirez
dd7e61d77f
timeout.c created: move client timeouts code there.
2020-03-27 16:35:03 +01:00
antirez
ab10e0f2fb
Precise timeouts: cleaup the table on unblock.
...
Now that this mechanism is the sole one used for blocked clients
timeouts, it is more wise to cleanup the table when the client unblocks
for any reason. We use a flag: CLIENT_IN_TO_TABLE, in order to avoid a
radix tree lookup when the client was already removed from the table
because we processed it by scanning the radix tree.
2020-03-27 16:35:03 +01:00
antirez
0e22cb2680
Precise timeouts: cleaup the table on unblock.
...
Now that this mechanism is the sole one used for blocked clients
timeouts, it is more wise to cleanup the table when the client unblocks
for any reason. We use a flag: CLIENT_IN_TO_TABLE, in order to avoid a
radix tree lookup when the client was already removed from the table
because we processed it by scanning the radix tree.
2020-03-27 16:35:03 +01:00
antirez
2ee65aff6b
Precise timeouts: fix comments after functional change.
2020-03-27 16:35:03 +01:00
antirez
13e4c2a9b1
Precise timeouts: fix comments after functional change.
2020-03-27 16:35:03 +01:00
antirez
0264a78063
Precise timeouts: use only radix tree for timeouts.
2020-03-27 16:35:03 +01:00
antirez
aa9d92d94a
Precise timeouts: use only radix tree for timeouts.
2020-03-27 16:35:03 +01:00
antirez
c54576c631
Precise timeouts: fast exit for clientsHandleShortTimeout().
2020-03-27 16:35:03 +01:00
antirez
077f965426
Precise timeouts: fast exit for clientsHandleShortTimeout().
2020-03-27 16:35:03 +01:00
antirez
36cba9bb8e
Precise timeouts: fix bugs in initial implementation.
2020-03-27 16:35:03 +01:00
antirez
8d11e0df7a
Precise timeouts: fix bugs in initial implementation.
2020-03-27 16:35:03 +01:00
antirez
f232cb6670
Precise timeouts: working initial implementation.
2020-03-27 16:35:03 +01:00
antirez
324a8c91d0
Precise timeouts: working initial implementation.
2020-03-27 16:35:03 +01:00
antirez
86bd36d93a
Precise timeouts: refactor unblocking on timeout.
2020-03-27 16:35:02 +01:00
antirez
8d116cc8a2
Precise timeouts: refactor unblocking on timeout.
2020-03-27 16:35:02 +01:00
antirez
94901f61b8
PSYNC2: fix backlog_idx when adjusting for meaningful offset
...
See #7002 .
2020-03-27 16:20:02 +01:00
antirez
97f1c808ce
PSYNC2: fix backlog_idx when adjusting for meaningful offset
...
See #7002 .
2020-03-27 16:20:02 +01:00
John Sully
8becc84c61
OS X Build break fix
...
Former-commit-id: 98da479d9241c077d3c11787800075dea91e989e
2020-03-26 15:20:55 -04:00
John Sully
d2ab029447
OS X Build break fix
...
Former-commit-id: 98da479d9241c077d3c11787800075dea91e989e
2020-03-26 15:20:55 -04:00
Valentino Geron
53a7041535
XREAD and XREADGROUP should not be allowed from scripts when BLOCK option is being used
2020-03-26 15:46:31 +02:00
Valentino Geron
9a1843ef2d
XREAD and XREADGROUP should not be allowed from scripts when BLOCK option is being used
2020-03-26 15:46:31 +02:00
Valentino Geron
81c1e22b8d
XACK should be executed in a "all or nothing" fashion.
...
First, we must parse the IDs, so that we abort ASAP.
The return value of this command cannot be an error if
the client successfully acknowledged some messages,
so it should be executed in a "all or nothing" fashion.
2020-03-26 15:40:23 +02:00
Valentino Geron
1547d72cf3
XACK should be executed in a "all or nothing" fashion.
...
First, we must parse the IDs, so that we abort ASAP.
The return value of this command cannot be an error if
the client successfully acknowledged some messages,
so it should be executed in a "all or nothing" fashion.
2020-03-26 15:40:23 +02:00
Salvatore Sanfilippo
307ff72522
Merge pull request #6644 from oranagra/stream_aofrw
...
AOFRW on an empty stream created with MKSTREAM loads badkly
2020-03-26 11:12:44 +01:00
Salvatore Sanfilippo
2ea7f0ecad
Merge pull request #6644 from oranagra/stream_aofrw
...
AOFRW on an empty stream created with MKSTREAM loads badkly
2020-03-26 11:12:44 +01:00
John Sully
366e00df79
bump version
...
Former-commit-id: 8e855c4568fd555f6df9a5b00bab2e42248127e3
2020-03-26 01:18:21 -04:00
John Sully
9461513066
bump version
...
Former-commit-id: 8e855c4568fd555f6df9a5b00bab2e42248127e3
2020-03-26 01:18:21 -04:00
John Sully
6742a6a70c
Merge branch 'keydbpro' into PRO_RELEASE_6
...
Former-commit-id: a5d8a93a476366ef2aa6fe9c248f33288b322ff6
2020-03-26 01:17:56 -04:00
John Sully
0f72eca2a0
Merge branch 'keydbpro' into PRO_RELEASE_6
...
Former-commit-id: a5d8a93a476366ef2aa6fe9c248f33288b322ff6
2020-03-26 01:17:56 -04:00
John Sully
bdcdd1396b
merge
...
Former-commit-id: 187773190f153f8a7236bc2e4f42bffe6885f727
2020-03-26 01:16:36 -04:00
John Sully
138ce49a96
merge
...
Former-commit-id: 187773190f153f8a7236bc2e4f42bffe6885f727
2020-03-26 01:16:36 -04:00
John Sully
f4caa84987
Fix merge issues
...
Former-commit-id: b22d9cc27d0434578891c59825f1c8813a3a9b28
2020-03-25 22:26:27 -04:00
John Sully
8011cc3c6d
Fix merge issues
...
Former-commit-id: b22d9cc27d0434578891c59825f1c8813a3a9b28
2020-03-25 22:26:27 -04:00
John Sully
9c4b66b9a4
Merge branch 'unstable' into redis_6_merge
...
Former-commit-id: 908cf5042ebcd7870166bd1a0bb450f37e5f3b4d
2020-03-25 22:12:22 -04:00
John Sully
aaa751acb8
Merge branch 'unstable' into redis_6_merge
...
Former-commit-id: 908cf5042ebcd7870166bd1a0bb450f37e5f3b4d
2020-03-25 22:12:22 -04:00
John Sully
71fe6f7ba9
Fix issue #143
...
Former-commit-id: 6ec1641294b23e22a2a5dc5cc6098a02ce234df3
2020-03-25 21:55:31 -04:00
John Sully
356ed25c62
Fix issue #143
...
Former-commit-id: 6ec1641294b23e22a2a5dc5cc6098a02ce234df3
2020-03-25 21:55:31 -04:00
John Sully
b443553a3d
Give a better error when handling std::terminate
...
Former-commit-id: 7b79ec360ba046da6d9dbf3cc731bbdee1458d34
2020-03-25 16:27:24 -04:00
John Sully
5e96404ad8
Give a better error when handling std::terminate
...
Former-commit-id: 7b79ec360ba046da6d9dbf3cc731bbdee1458d34
2020-03-25 16:27:24 -04:00
John Sully
6c04367c8d
Fix breaks from merge
...
Former-commit-id: fa76d19bee9df21967c4d8554128eebdd19021fa
2020-03-25 16:22:32 -04:00
John Sully
375b204382
Fix breaks from merge
...
Former-commit-id: fa76d19bee9df21967c4d8554128eebdd19021fa
2020-03-25 16:22:32 -04:00
Oran Agra
1ed18d7cd7
AOFRW on an empty stream created with MKSTREAM loads badkly
...
the AOF will be loaded successfully, but the stream will be missing,
i.e inconsistencies with the original db.
this was because XADD with id of 0-0 would error.
add a test to reproduce.
2020-03-25 21:47:57 +02:00
Oran Agra
3b29556a0c
AOFRW on an empty stream created with MKSTREAM loads badkly
...
the AOF will be loaded successfully, but the stream will be missing,
i.e inconsistencies with the original db.
this was because XADD with id of 0-0 would error.
add a test to reproduce.
2020-03-25 21:47:57 +02:00
John Sully
1fc4cb38ce
Merge branch 'redis_6_merge' into keydbpro
...
Former-commit-id: 44f1b065ed6d3b0ad2a62f093432743b98fad6be
2020-03-25 15:47:24 -04:00