This commit is contained in:
2025-11-03 15:52:25 +01:00
parent 21caecb91e
commit e135d871c1
7 changed files with 191 additions and 67 deletions
+2 -2
View File
@@ -24,7 +24,7 @@ int metadata_server_main(int argc, char **argv)
&state, argc, argv, contexts, polled, &timeout);
if (num_polled < 0) return -1;
for (;;) {
POLL(polled, num_polled, -1);
POLL(polled, num_polled, timeout);
num_polled = metadata_server_step(
&state, contexts, polled, num_polled, &timeout);
if (num_polled < 0) return -1;
@@ -44,7 +44,7 @@ int chunk_server_main(int argc, char **argv)
&state, argc, argv, contexts, polled, &timeout);
if (num_polled < 0) return -1;
for (;;) {
POLL(polled, num_polled, -1);
POLL(polled, num_polled, timeout);
num_polled = chunk_server_step(
&state, contexts, polled, num_polled, &timeout);
if (num_polled < 0) return -1;