Fix scheduling issue where time didn't advance if a host was always ready
This commit is contained in:
+2
-1
@@ -36,7 +36,8 @@ typedef pthread_mutex_t Mutex;
|
||||
|
||||
#define PARALLEL_LIMIT 5
|
||||
|
||||
#define CLIENT_TRACE(fmt, ...) fprintf(stderr, "CLIENT: " fmt "\n", ##__VA_ARGS__);
|
||||
#define CLIENT_TRACE(fmt, ...) {}
|
||||
//#define CLIENT_TRACE(fmt, ...) fprintf(stderr, "CLIENT: " fmt "\n", ##__VA_ARGS__);
|
||||
|
||||
typedef struct {
|
||||
SHA256 hash;
|
||||
|
||||
@@ -131,6 +131,7 @@ int main(void)
|
||||
// Client
|
||||
{
|
||||
QuakeySpawn config = {
|
||||
.name = "client",
|
||||
.state_size = sizeof(RandomClient),
|
||||
.init_func = random_client_init,
|
||||
.tick_func = random_client_tick,
|
||||
@@ -146,6 +147,7 @@ int main(void)
|
||||
// Metadata Server
|
||||
{
|
||||
QuakeySpawn config = {
|
||||
.name = "ms",
|
||||
.state_size = sizeof(MetadataServer),
|
||||
.init_func = metadata_server_init,
|
||||
.tick_func = metadata_server_tick,
|
||||
@@ -161,6 +163,7 @@ int main(void)
|
||||
// Chunk Server
|
||||
{
|
||||
QuakeySpawn config = {
|
||||
.name = "cs",
|
||||
.state_size = sizeof(ChunkServer),
|
||||
.init_func = chunk_server_init,
|
||||
.tick_func = chunk_server_tick,
|
||||
|
||||
@@ -9,7 +9,8 @@
|
||||
#include "message.h"
|
||||
#include "metadata_server.h"
|
||||
|
||||
#define MS_TRACE(fmt, ...) fprintf(stderr, "MS: " fmt "\n", ##__VA_ARGS__);
|
||||
#define MS_TRACE(fmt, ...) {}
|
||||
//#define MS_TRACE(fmt, ...) fprintf(stderr, "MS: " fmt "\n", ##__VA_ARGS__);
|
||||
|
||||
static void chunk_server_peer_init(ChunkServerPeer *chunk_server, Time current_time)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user