diff options
author | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-06-22 20:46:04 +0200 |
---|---|---|
committer | cinap_lenrek <cinap_lenrek@felloff.net> | 2017-06-22 20:46:04 +0200 |
commit | 81274ea0cf5b205d18f7345d5cf883bbd1fdac30 (patch) | |
tree | 43e3034d6c11152d2a5b369a860821b20ea0d1e0 /sys/src/cmd/upas/fs/cache.c | |
parent | 99ed9623b59b4aa6aa27215785b05f17118f8855 (diff) |
upas/fs: handle plumbing for new messages for concurrent index updates
when multiple upas/fs instances are running on the same index,
another upas/fs could have written the index, but we still want
to plumb the message.
so we introduce another cstate flag "Cnew" that is set when a
message that we havnt seen before by rdidx().
Diffstat (limited to 'sys/src/cmd/upas/fs/cache.c')
-rw-r--r-- | sys/src/cmd/upas/fs/cache.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/src/cmd/upas/fs/cache.c b/sys/src/cmd/upas/fs/cache.c index ec2cfb9b7..19186cec3 100644 --- a/sys/src/cmd/upas/fs/cache.c +++ b/sys/src/cmd/upas/fs/cache.c @@ -375,7 +375,8 @@ static char *itab[] = { "idx", "stale", "header", - "body" + "body", + "new", }; char* |