Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
谁能解释在集群主控将本地队列合并到全局队列后,HCLH 锁如何处理在本地集群中创建的新节点?
一旦本地队列合并到全局队列中,集群主节点会将 tailWhenSpliced 字段设置为 true。添加的新本地节点在检查前任的 tailWhenSpliced 标志时将知道它是集群主节点。我已经缩短了长答案。