Remove solved TODO from TODO.txt and fix a bug in file_tree_read
This commit is contained in:
+2
-2
@@ -422,11 +422,11 @@ int file_tree_read(FileTree *ft, string path,
|
||||
|
||||
File *f = &e->f;
|
||||
|
||||
*chunk_size = f->chunk_size;
|
||||
|
||||
if (len == 0)
|
||||
return 0;
|
||||
|
||||
*chunk_size = f->chunk_size;
|
||||
|
||||
uint64_t first_chunk_index = off / f->chunk_size;
|
||||
uint64_t last_chunk_index = first_chunk_index + (len - 1) / f->chunk_size;
|
||||
|
||||
|
||||
+1
-1
@@ -15,7 +15,7 @@ int main(int argc, char **argv)
|
||||
|
||||
// TODO: set simulation_should_stop=true on ctrl+C
|
||||
|
||||
startup_simulation(3);
|
||||
startup_simulation(2);
|
||||
|
||||
// Spawn metadata server (leader)
|
||||
spawn_simulated_process("--addr 127.0.0.1 --port 8080 --leader");
|
||||
|
||||
Reference in New Issue
Block a user