Commit Graph
10626 Commits
Author SHA1 Message Date
John Sully c34fee9ed4 Merge branch 'unstable' of https://github.com/JohnSully/KeyDB into unstable
Former-commit-id: 16bd6b3f5d
2019-11-14 21:21:46 -05:00
John Sully a098681bbf Cluster multithreading fixes
Former-commit-id: 3dd78a6101
2019-11-14 20:14:24 -05:00
John Sully b8cc7e2b9c Debug sleep should apply to all threads
Former-commit-id: 41b678814b
2019-11-14 19:57:29 -05:00
John Sully 93844525ea killing clients should take effect ASAP
Former-commit-id: d0ccb074d5
2019-11-14 19:49:32 -05:00
John Sully 451c6e81f4 Improve AE Assert message
Former-commit-id: cb0fc7cca2
2019-11-14 19:34:13 -05:00
John Sully 75b22fafc2 Fix test failure with tcl8.5 (test only issue)
Former-commit-id: 5e40ea6ee7
2019-11-04 17:31:29 -08:00
John Sully 2194d91476 Fix potential race in pubsub
Former-commit-id: 427c5999f1
2019-10-25 02:50:30 -04:00
John Sully df8a20a744 Signals can happen on any thread, so look for the signal handler not the command on the callstack
Former-commit-id: f1d2b29450
2019-10-24 23:30:08 -04:00
John Sully bd9ea70609 Two fixes: 1) Remove race conditions by not locking clients when async writing. 2) Don't derefence dangling pointers in lambda
Former-commit-id: cb93752aff
2019-10-24 23:07:02 -04:00
John Sully 1e952f28c2 Sanitizers work with GCC too
Former-commit-id: 549cad378d
2019-10-24 23:05:39 -04:00
John Sully 8f015eaebb Remove the DB lock, its unnecessary
Former-commit-id: 631f863dd8
2019-10-24 20:18:48 -04:00
John Sully 7a50cebac4 Remove unlocked KEYS command support, we will do this with snapshotting
Former-commit-id: 4396682c07
2019-10-24 20:18:11 -04:00
John Sully 86c1f7aaf7 Build break, ensure C99 compatibility
Former-commit-id: ca4ee4e3e4
2019-10-23 13:38:07 -04:00
John Sully b14b11c87c Fix build break in TravisCI
Former-commit-id: 2da09e0732
2019-10-23 13:31:39 -04:00
John Sully 5f930a4f79 If a replica is about to be closed, don't wait on its lock (potential deadlock)
Former-commit-id: 4986dc6da9
2019-10-23 13:20:23 -04:00
John Sully 6dc17bbe1f processEventsWhileBlocked needs to release the lock in a safe way
Former-commit-id: 1a70af2ae1
2019-10-23 13:19:57 -04:00
John Sully 03769b5c17 Remove race conditions
Former-commit-id: 5a8cb77d0d
2019-10-22 23:26:37 -04:00
John Sully 1c1260d71f Optimize deadlock detection, fix callstack for ASM, and annotate locks
Note: This change moves our assembly code to use the GNU Assembler because NASM seems to be incapable of emitting the necessary debug information for callstack unwinding to work.

Former-commit-id: 600fc241cf
2019-10-22 21:34:51 -04:00
John Sully b84d9671ec Implement deadlock detection
Former-commit-id: fa797408d9
2019-10-22 00:43:32 -04:00
john@csquare.ca 10561c2e57 Fix: ExpireMember does not update MVCC timestamp
Former-commit-id: f5210a8fb0
2019-10-16 12:38:15 -04:00
John Sully ac14b6ac7d expiremember should return the same results as expire
Former-commit-id: 8f1295c00f
2019-10-16 12:27:04 -04:00
John Sully eaabfd2038 Fix crash adding expire to key with a subkey expire already set
Former-commit-id: 18a3768e07
2019-10-16 12:26:48 -04:00
eric-weaver dab8343cde add missing dependency
Former-commit-id: 95e3dbc104
2019-10-13 21:30:06 +02:00
Segmond 8c7c25a9fb Update README.md
Typo, focuses spelled as focusses

Former-commit-id: 40355eac3e
2019-10-13 21:29:15 +02:00
John Sully 6b2c838e8b Implement the lastmodified query for the OBJECT command
Former-commit-id: 3a3b59a054
2019-10-13 14:12:09 -04:00
John Sully 6310847d61 You are not allowed to set a subkey expire if the subkey does not exist
Former-commit-id: 12e17cfd6e
2019-10-13 14:11:43 -04:00
John Sully 0e82cb44e5 Implement the EXPIREMEMBERAT command
Former-commit-id: 203e341bf4
2019-10-13 13:15:13 -04:00
John Sully 7b3f093dd6 Add millisecond support for EXPIREMEMBER command
Former-commit-id: 6e6cd84ad7
2019-10-13 12:57:50 -04:00
John Sully c61b6cc8fd Update more slave instances to use replica (Issue #75)
Former-commit-id: 252725d50f
2019-10-13 12:29:20 -04:00
John Sully d4e4b4f4d1 Update a few uses of slave to use the new replica terminology (Issue #75)
Former-commit-id: c15633ea9e
2019-10-13 12:12:05 -04:00
John Sully fc97c22819 Fix an intermittent crash when replicationCron happens before slavesdb is update
Former-commit-id: 27c9ae667e
2019-10-13 12:04:54 -04:00
John Sully 2d0cd2c1b2 Implement TTL and PERSIST commands for subkeys. Also ensure expiremember replaces any old subkey expiries
Former-commit-id: 16f96efbe7
2019-10-13 12:03:25 -04:00
John Sully f66063aa90 Merge branch 'unstable' of https://github.com/JohnSully/redis2 into unstable
Former-commit-id: 5787e7adc7
2019-10-13 10:03:01 -04:00
John Sully 9fb26516d6 Fix issue #88 - don't let seperate KeyDB processes listen on the same port
Former-commit-id: 4631119179
2019-10-13 10:02:21 -04:00
Edgard Lorraine Messias d5236c1c76 Fixed "Provides" name in chkconfig info
Former-commit-id: cedea7e400
2019-10-01 13:44:58 -04:00
John Sully 5ca2fe61e1 Expire DEL command place holder
Former-commit-id: 64aa4b80e6
2019-09-30 00:01:23 -04:00
John Sully 61cc53d604 Fuzz mode is now an argument not based on the exe name
Former-commit-id: 551a3cb1aa
2019-09-30 00:00:29 -04:00
John Sully d9a244c34c finish up the RDB fuzz
Former-commit-id: 0942188b0a
2019-09-28 17:38:46 -04:00
John Sully 08b353cd55 Fix double free in RDB load
Former-commit-id: 070c481871
2019-09-28 17:38:26 -04:00
John Sully 4bf3388f4e RDB fuzz test cases
Former-commit-id: 6df4d29422
2019-09-28 17:04:08 -04:00
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