[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[GNUnet-SVN] r27935 - msh/src
From: |
gnunet |
Subject: |
[GNUnet-SVN] r27935 - msh/src |
Date: |
Thu, 11 Jul 2013 17:50:59 +0200 |
Author: harsha
Date: 2013-07-11 17:50:58 +0200 (Thu, 11 Jul 2013)
New Revision: 27935
Modified:
msh/src/mshd.c
Log:
- fix offset calculation while marking verified instances in bitmap
Modified: msh/src/mshd.c
===================================================================
--- msh/src/mshd.c 2013-07-11 15:24:38 UTC (rev 27934)
+++ msh/src/mshd.c 2013-07-11 15:50:58 UTC (rev 27935)
@@ -432,6 +432,8 @@
{
struct VerifyAddressesCtx *ctx = cls;
int lb;
+ int source;
+ int off;
scheduler_remove (ctx->close_task);
ctx->close_task = NULL;
@@ -449,8 +451,12 @@
lb = rank - round * rwidth - rwidth + nproc;
MSH_assert (0 <= lb);
lb %= nproc;
- MSH_assert (lb <= ctx->iainfo->source);
- bitmap_set (bitmap, ctx->iainfo->source - lb, 1);
+ source = ctx->iainfo->source;
+ if (lb <= source)
+ off = source - lb;
+ else
+ off = nproc - lb + source;
+ bitmap_set (bitmap, off, 1);
return;
}
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [GNUnet-SVN] r27935 - msh/src,
gnunet <=