John Sully
2c6fdf0f4e
RREPLAY command now takes a DB argument
...
Former-commit-id: 6e1e5bd08b
2019-09-28 14:59:44 -04:00
John Sully
b6b6bb0488
Implement left and right shift BITOP operators
...
Former-commit-id: ba365298ed
2019-09-28 00:10:46 -04:00
John Sully
98197d7d99
Fix leaking stale RDBs during multimaster sync
...
Former-commit-id: e1c9620951
2019-09-27 13:17:29 -04:00
John Sully
9f3cbd580e
Fix multi master bugs: 1. we fail to create the temp file. 2. We use a master RDB as our backup even though we merged databases (and therefore it is not representitive)
...
Former-commit-id: e776474f68
2019-09-26 20:35:51 -04:00
John Sully
4669d4d0d0
Fix issue where AOF events are posted to the wrong event loop and not properly cleaned up
...
Former-commit-id: 55324aa56a
2019-09-19 15:39:52 -04:00
John Sully
2912b22403
KEYS now only blocks one database
...
Former-commit-id: 18d42a5c35
2019-09-12 18:51:10 -04:00
John Sully
ab48b2bfed
Fix issue where Active Replicas were commiting data to the wrong database under load
...
Former-commit-id: ac595ebe37
2019-09-06 13:30:28 -04:00
John Sully
b98eed9945
Fix race condition in PUB/SUB and other async reply commands where the client can be freed before our handler is executed on the client thread. When this occurs the client pointer is dangling
...
Former-commit-id: 46a78c69e7
2019-08-26 20:18:52 -04:00
John Sully
7b937c830b
Fix warnings on newer compilers
...
Former-commit-id: 33e0b3e1c0
2019-08-14 01:03:24 -04:00
benschermel
91283ee5d7
update readme ( #71 )
...
* update readme
* KeyDB must acknowledge its Redis origin and that while we have different opinions we are greatful to Antirez and Redis for the work they've done in this space.
* Update README.md
Former-commit-id: 4e9bfcf84b
2019-08-06 19:25:13 -04:00
John Sully
eb6152c3cf
Optimize the new expire code
...
Former-commit-id: 75c6b4c64a
2019-08-02 21:31:05 -04:00
John Sully
02151b9110
Fix test failures: Non active replicas are allowed to use shared int values
...
Former-commit-id: 8536854266
2019-07-30 17:11:15 -04:00
John Sully
863ae63e2c
Acquire the lock for modules that don't acquire it before calling like they are supposed to
...
Former-commit-id: 6016dd0f8b
2019-07-30 16:54:25 -04:00
John Sully
0df22ef9f6
Fix HLL corruption
...
Former-commit-id: 47ef9e5cbd
2019-07-29 18:08:45 -04:00
John Sully
2181eca5de
Fix crash setting expire on a key with an existing subkey expiration
...
Former-commit-id: 4858fd893c
2019-07-29 17:09:51 -04:00
John Sully
363fbbb54c
Fix crash in RediSearch
...
Former-commit-id: cbe5c04a0f
2019-07-29 15:08:41 -04:00
John Sully
f3aa422a3f
RREPLAY failures should be logged
...
Former-commit-id: 08b6a04055
2019-07-24 22:49:30 -04:00
John Sully
f31b1fd06b
Issue #64 RREPLAY isn't binary safe. Add fix and test.
...
Former-commit-id: afe66288fe
2019-07-24 22:31:02 -04:00
John Sully
2df14dc997
We can't set FExpire() on shared objects, issue #66
...
Former-commit-id: 2794cfced4
2019-07-23 23:39:47 -04:00
John Sully
11364a1147
Merge pull request #65 from JohnSully/subexpire
...
EXPIREMEMBER Command Implementation
Former-commit-id: d6b45a56e7
2019-07-23 19:06:57 -04:00
John Sully
9711895721
Subexpire entries should load/save
...
Former-commit-id: a55d980436
2019-07-23 18:53:59 -04:00
John Sully
010450e68f
Fix buggy rebase
...
Former-commit-id: 6037d1f326
2019-07-23 18:53:59 -04:00
John Sully
589628823f
Fix merge conflict
...
Former-commit-id: 0b43b51a2e
2019-07-23 18:53:59 -04:00
John Sully
f88592451d
Plumb support for sub expires to all expire related code
...
Former-commit-id: 184abac694
2019-07-23 18:53:59 -04:00
John Sully
d7a1231238
Fix crash with traditional expiration
...
Former-commit-id: 0ba5b2c3d6
2019-07-23 18:53:58 -04:00
John Sully
2a2225d150
Initial prototype of EXPIREMEMBER command
...
Former-commit-id: 0b3d74ea67
2019-07-23 18:53:58 -04:00
John Sully
4568ecf9cd
New expire datastructure and algorithm. Allows us to expire in sublinear time
...
Former-commit-id: ea3bd614b8
2019-07-23 18:49:31 -04:00
John Sully
be123c44b9
Merge pull request #50 from JohnSully/expire
...
New Expire Datastructure which is faster and more memory efficient. This allows us to process expiries in sublinear time.
Former-commit-id: d45edc493d
2019-07-23 18:40:48 -04:00
John Sully
d58b2575e5
Support TTL stats with the new expire datastructure
...
Former-commit-id: 271df3dad4
2019-07-23 18:30:10 -04:00
John Sully
d050d20a9f
Implement hash table stats and fixup the hash function based on the results
...
Former-commit-id: 5a193872f8
2019-07-23 18:30:10 -04:00
John Sully
9420b9c1c2
Add back missing file lost in rebase
...
Former-commit-id: b5512d77a1
2019-07-23 18:30:10 -04:00
John Sully
741029118e
Add back file erroniously deleted in rebase
...
Former-commit-id: 42bda8eaba
2019-07-23 18:30:10 -04:00
John Sully
db206557e9
never make last minute changes before commiting
...
Former-commit-id: 7e5d3f4f16
2019-07-23 18:30:10 -04:00
John Sully
82bd5f0ecc
Fix a few potential assert crashes
...
Former-commit-id: 5f3920e491
2019-07-23 18:30:10 -04:00
John Sully
27cb5dba75
New expire datastructure and algorithm. Allows us to expire in sublinear time
...
Former-commit-id: 3880d2616c
2019-07-23 18:30:10 -04:00
John Sully
2e6f1098e4
Any +x bit is acceptable
...
Former-commit-id: 156e596f9c
2019-07-19 15:26:17 -04:00
John Sully
b2aa7b0683
Any +x bit is acceptable
...
Former-commit-id: fc58516cca
2019-07-19 01:42:05 -04:00
John Sully
08d067fbcf
Modules must have execute permissions to load
...
Former-commit-id: a4efcd35af
2019-07-19 01:31:10 -04:00
antirez
1aa5638b93
RDB: make sure to abort on LZF encoding error.
...
Former-commit-id: 27fe1658a2
2019-07-19 01:03:16 -04:00
antirez
3e75e77dcd
RDB: handle encoding errors with rdbExitReportCorruptRDB().
...
Without such change, the diskless replicas, when loading RDB files from
the socket will not abort when a broken RDB file gets loaded. This is
potentially unsafe, because right now Redis is not able to guarantee
that encoding errors are safe from the POV of memory corruptions (for
instance the LZF library may not be safe against untrusted data?) so
better to abort when the RDB file we are going to load is corrupted.
Instead I/O errors are still returned to the caller without aborting,
so that in case of short read the diskless replica can try again.
Former-commit-id: 47feb2719c
2019-07-19 01:02:49 -04:00
John Sully
bb9b8ee164
Fix bad merge in SCAN KEYS command
...
Former-commit-id: c21af6b351
2019-07-19 00:43:23 -04:00
John Sully
15f5c7ccf7
Merge commit '722446510faf0debf0d309708b2ed4fe4d939319' into unstable
...
Former-commit-id: 821c12c482
2019-07-19 00:32:43 -04:00
John Sully
4088de0ed2
Merge commit '677e95e2f5ee903682ce44a7bfd9558a22577926' into unstable
...
Former-commit-id: 4602f8c391
2019-07-19 00:01:56 -04:00
John Sully
e642441354
Fix compile errors from merges
...
Former-commit-id: 27a927fe00
2019-07-18 23:35:51 -04:00
Angus Pearson
7b615e7274
Add char* typeNameCanonicalize(robj*) to remove duplicate code between SCAN and TYPE commands,
...
and to keep OBJ_* enum to string canonicalization in one place.
Former-commit-id: 3cdc6e8d84
2019-07-18 23:31:31 -04:00
John Sully
f84ee30d7d
Merge commit '0cabe0cfa7290d9b14596ec38e0d0a22df65d1df' into unstable
...
Former-commit-id: 89b52da387
2019-07-18 23:28:56 -04:00
Madelyn Olson
a8fc002adc
Fixed some spelling issues in ACL codepath including user facing error
...
Former-commit-id: 50ad880ad5
2019-07-18 23:28:36 -04:00
John Sully
e160fbdeb9
Merge commit 'de035c94816722dd923e4aedd852869de79a5185' into unstable
...
Former-commit-id: 15bed4bbcc
2019-07-18 23:26:46 -04:00
John Sully
73df5494a8
Merge commit 'bf963253ecfd367b49081a26c1b5c410558aecfc' into unstable
...
Former-commit-id: 10986ae3a8
2019-07-18 23:22:36 -04:00
John Sully
d129e3df0a
Merge commit '7fababd44e8b8b2df53cad0906ec5ab7c678dd44' into unstable
...
Former-commit-id: 2baa76b2ee
2019-07-18 23:21:13 -04:00