Revision db206d2b chunk_signaling.c

View differences:

chunk_signaling.c
30 30
#include "topology.h"
31 31
#include "dbg.h"
32 32

  
33
void bmap_received(const struct nodeID *fromid, const struct nodeID *ownerid, struct chunkID_set *c_set, int cb_size, int trans_id) {
33
void bmap_received(const struct nodeID *fromid, const struct nodeID *ownerid, struct chunkID_set *c_set, int trans_id) {
34 34
  struct peer *owner;
35 35
  if (nodeid_equal(fromid, ownerid)) {
36 36
    owner = nodeid_to_peer(ownerid,1);
......
41 41
  }
42 42
  
43 43
  if (owner) {	//now we have it almost sure
44
    chunkID_set_clear(owner->bmap,cb_size+5);	//TODO: some better solution might be needed to keep info about chunks we sent in flight.
44
    chunkID_set_clear(owner->bmap,0);	//TODO: some better solution might be needed to keep info about chunks we sent in flight.
45 45
    chunkID_set_union(owner->bmap,c_set);
46
    owner->cb_size = cb_size;
47 46
    gettimeofday(&owner->bmap_timestamp, NULL);
48 47
  }
49 48
}

Also available in: Unified diff