moat-kv 0.71.8__py3-none-any.whl → 0.71.10__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- moat/kv/server.py +13 -12
- {moat_kv-0.71.8.dist-info → moat_kv-0.71.10.dist-info}/METADATA +1 -1
- {moat_kv-0.71.8.dist-info → moat_kv-0.71.10.dist-info}/RECORD +9 -9
- {moat_kv-0.71.8.dist-info → moat_kv-0.71.10.dist-info}/WHEEL +0 -0
- {moat_kv-0.71.8.dist-info → moat_kv-0.71.10.dist-info}/licenses/LICENSE +0 -0
- {moat_kv-0.71.8.dist-info → moat_kv-0.71.10.dist-info}/licenses/LICENSE.APACHE2 +0 -0
- {moat_kv-0.71.8.dist-info → moat_kv-0.71.10.dist-info}/licenses/LICENSE.MIT +0 -0
- {moat_kv-0.71.8.dist-info → moat_kv-0.71.10.dist-info}/licenses/LICENSE.txt +0 -0
- {moat_kv-0.71.8.dist-info → moat_kv-0.71.10.dist-info}/top_level.txt +0 -0
moat/kv/server.py
CHANGED
@@ -2136,7 +2136,7 @@ class Server:
|
|
2136
2136
|
nodes=True,
|
2137
2137
|
from_server=self.node.name,
|
2138
2138
|
known=True,
|
2139
|
-
deleted=
|
2139
|
+
deleted=False,
|
2140
2140
|
iter=False,
|
2141
2141
|
)
|
2142
2142
|
await self._process_info(res)
|
@@ -2153,14 +2153,15 @@ class Server:
|
|
2153
2153
|
if authoritative:
|
2154
2154
|
# … or not.
|
2155
2155
|
self._discard_all_missing()
|
2156
|
-
|
2157
|
-
|
2158
|
-
|
2159
|
-
|
2160
|
-
self.
|
2161
|
-
|
2162
|
-
|
2163
|
-
|
2156
|
+
if False:
|
2157
|
+
for nst in self._nodes.values():
|
2158
|
+
if nst.tick and len(nst.local_missing):
|
2159
|
+
self.fetch_missing.add(nst)
|
2160
|
+
if len(self.fetch_missing):
|
2161
|
+
self.fetch_running = False
|
2162
|
+
for nm in self.fetch_missing:
|
2163
|
+
self.logger.error("Sync: missing: %s %s", nm.name, nm.local_missing)
|
2164
|
+
await self.spawn(self.do_send_missing)
|
2164
2165
|
if self.force_startup or not len(self.fetch_missing):
|
2165
2166
|
if self.node.tick is None:
|
2166
2167
|
self.node.tick = 0
|
@@ -2450,7 +2451,7 @@ class Server:
|
|
2450
2451
|
shorter(res)
|
2451
2452
|
await writer(res)
|
2452
2453
|
|
2453
|
-
msg = await self.get_state(nodes=True, known=True, deleted=
|
2454
|
+
msg = await self.get_state(nodes=True, known=True, deleted=False)
|
2454
2455
|
# await writer({"info": msg})
|
2455
2456
|
await writer(msg) # XXX legacy
|
2456
2457
|
await self.root.walk(saver, full=full)
|
@@ -2488,7 +2489,7 @@ class Server:
|
|
2488
2489
|
shorter = PathShortener([])
|
2489
2490
|
|
2490
2491
|
async with MsgWriter(path=path, stream=stream, codec="std-msgpack") as mw:
|
2491
|
-
msg = await self.get_state(nodes=True, known=True, deleted=
|
2492
|
+
msg = await self.get_state(nodes=True, known=True, deleted=False)
|
2492
2493
|
# await mw({"info": msg})
|
2493
2494
|
await mw(msg) # XXX legacy
|
2494
2495
|
last_saved = time.monotonic()
|
@@ -2512,7 +2513,7 @@ class Server:
|
|
2512
2513
|
t = time.monotonic()
|
2513
2514
|
td = t - last_saved
|
2514
2515
|
if td >= 60 or last_saved_count > 1000:
|
2515
|
-
msg = await self.get_state(nodes=True, known=True, deleted=
|
2516
|
+
msg = await self.get_state(nodes=True, known=True, deleted=False)
|
2516
2517
|
# await mw({"info": msg})
|
2517
2518
|
await mw(msg) # XXX legacy
|
2518
2519
|
await mw.flush()
|
@@ -9,7 +9,7 @@ moat/kv/errors.py,sha256=cjX0e184EC10HvQ7UOkWdWmc1A8jPr983IFR8UkaI8U,17089
|
|
9
9
|
moat/kv/exceptions.py,sha256=4gRsYa6kuBy1qFYiBUYElup_cvOe7QgPQtryHAYphzo,1849
|
10
10
|
moat/kv/model.py,sha256=6OZFWK5XlwMlGyRyx964x7qz1FUOxCAVeX3LyS2riPo,33344
|
11
11
|
moat/kv/runner.py,sha256=6vpChgCjiWHAjc2u0bbOOQ8cT5KB-f4uBnQb8MgH9wk,41826
|
12
|
-
moat/kv/server.py,sha256=
|
12
|
+
moat/kv/server.py,sha256=7C0ZZW1lfyw1ZV11qJXhGiKRryfJZtUqFhVzsVdYTLI,94273
|
13
13
|
moat/kv/types.py,sha256=aCi7_LXzqwruHbEEDJukOjnXNUC2HUaDbgblN8Q05Rc,13998
|
14
14
|
moat/kv/actor/__init__.py,sha256=i560uy9WLE4SmOXWcXKjFKNKZdRR51jOwWg7cSASVRo,2131
|
15
15
|
moat/kv/actor/deletor.py,sha256=F-pb0jHddhmqLp65G7vbZ_QIxXu5ZF0UBzHWKRgN45U,4537
|
@@ -37,11 +37,11 @@ moat/kv/mock/mqtt.py,sha256=b9pzbwQBmTX2eSiSgNO7nh2-7l8-0TT8n2GxinQ-1l0,5213
|
|
37
37
|
moat/kv/mock/tracer.py,sha256=qLEIn9gdlYUypyRYD8O8SbM8ye8XR4xtBl3otP6uNLs,2058
|
38
38
|
moat/kv/obj/__init__.py,sha256=OaQ7PsvvhRhd_H7KUM15nGeApckkCyOv7Xf4llqkzi0,19792
|
39
39
|
moat/kv/obj/command.py,sha256=PzMQOEsXRKjKU3WvFtq1QaPJYBk6oWScKIrA-hAD5vg,7426
|
40
|
-
moat_kv-0.71.
|
41
|
-
moat_kv-0.71.
|
42
|
-
moat_kv-0.71.
|
43
|
-
moat_kv-0.71.
|
44
|
-
moat_kv-0.71.
|
45
|
-
moat_kv-0.71.
|
46
|
-
moat_kv-0.71.
|
47
|
-
moat_kv-0.71.
|
40
|
+
moat_kv-0.71.10.dist-info/licenses/LICENSE,sha256=ZSyHhIjRRWNh4Iw_hgf9e6WYkqFBA9Fczk_5PIW1zIs,185
|
41
|
+
moat_kv-0.71.10.dist-info/licenses/LICENSE.APACHE2,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358
|
42
|
+
moat_kv-0.71.10.dist-info/licenses/LICENSE.MIT,sha256=Pm2uVV65J4f8gtHUg1Vnf0VMf2Wus40_nnK_mj2vA0s,1046
|
43
|
+
moat_kv-0.71.10.dist-info/licenses/LICENSE.txt,sha256=L5vKJLVOg5t0CEEPpW9-O_0vzbP0PEjEF06tLvnIDuk,541
|
44
|
+
moat_kv-0.71.10.dist-info/METADATA,sha256=FTllQH6auVqk-PFWm8ob7htbHpPsjt4vfUtV-gPSEt0,3377
|
45
|
+
moat_kv-0.71.10.dist-info/WHEEL,sha256=CmyFI0kx5cdEMTLiONQRbGQwjIoR1aIYB7eCAQ4KPJ0,91
|
46
|
+
moat_kv-0.71.10.dist-info/top_level.txt,sha256=pcs9fl5w5AB5GVi4SvBqIVmFrkRwQkVw_dEvW0Q0cSA,5
|
47
|
+
moat_kv-0.71.10.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|