[chord] Dhash modifying

Tung Thanh Nguyen dx1908 at wayne.edu
Mon Mar 17 22:16:19 EDT 2008


Hi, 
Here is my simple modify:
in the client.C, function dhashcli::insert_lookup_cb {
...
ref<sto_state> ss = New refcounted<sto_state> (block, cb);
ss->succs = succs;
ss->r = r;
ss->blk = blk;

// Track number of times insert_store_cb is to be called.
ss->out = succs.size ();

info << "In insert_lookup_cb: \n";
info << "successor.size " << succs.size() << "\n";

for (u_int i = 0; i < succs.size(); i++) {
...

I tested this by using the filestore with -s option
Thanks
TUNG

---- Original message ----
>Date: Mon, 17 Mar 2008 20:50:25 -0400
>From: Emil Sit <sit at mit.edu>  
>Subject: Re: [chord] Dhash modifying  
>To: Tung Thanh Nguyen <dx1908 at wayne.edu>
>Cc: chord <chord at amsterdam.lcs.mit.edu>
>
>On Fri, 14 March 2008 at 20:46 (-0400), Tung Thanh Nguyen wrote:
>> I intend to modify Dhash code to implement my replica mechanism. I'd
>> like to put the replicas on certain nodes. Can I directly call
>> dhash_store::execute method?
>
>Sure.  That should work.  Does it not?
>
>> I tried to modify the dhashcli::insert_store_cb to print out some
>> additional information to the log file using the modloger's "info".
>> However, there was no change in the log.lsd file when inserting a new
>
>I can't really comment on why that might be without seeing
>your patches. 
>
>-- 
>Emil Sit / MIT CSAIL PDOS / http://pdos.csail.mit.edu/chord/  
>
>_______________________________________________
>chord mailing list
>chord at amsterdam.lcs.mit.edu
>https://amsterdam.lcs.mit.edu/mailman/listinfo/chord



More information about the chord mailing list