1. 10 Oct, 2019 3 commits
    • Salvatore Sanfilippo's avatar
      Merge pull request #6438 from daidaotong/unstable · 1d9d27c9
      Salvatore Sanfilippo authored
      resolve typo in test module
      1d9d27c9
    • antirez's avatar
    • antirez's avatar
      Cluster: fix memory leak of cached master. · 747be463
      antirez authored
      This is what happened:
      
      1. Instance starts, is a slave in the cluster configuration, but
      actually server.masterhost is not set, so technically the instance
      is acting like a master.
      
      2. loadDataFromDisk() calls replicationCacheMasterUsingMyself() even if
      the instance is a master, in the case it is logically a slave and the
      cluster is enabled. So now we have a cached master even if the instance
      is practically configured as a master (from the POV of
      server.masterhost value and so forth).
      
      3. clusterCron() sees that the instance requires to replicate from its
      master, because logically it is a slave, so it calls
      replicationSetMaster() that will in turn call
      replicationCacheMasterUsingMyself(): before this commit, this call would
      overwrite the old cached master, creating a memory leak.
      747be463
  2. 09 Oct, 2019 1 commit
  3. 08 Oct, 2019 3 commits
  4. 07 Oct, 2019 7 commits
  5. 04 Oct, 2019 7 commits
  6. 03 Oct, 2019 5 commits
  7. 02 Oct, 2019 4 commits
  8. 01 Oct, 2019 4 commits
  9. 30 Sep, 2019 6 commits