Permalink
Browse files

chunkSize param

  • Loading branch information...
1 parent b3b6440 commit 67575ac7eb899028b76ea8b98b4b4a0af68181d6 @erh erh committed Apr 30, 2010
Showing with 4 additions and 0 deletions.
  1. +4 −0 s/server.cpp
View
@@ -157,6 +157,7 @@ int main(int argc, char* argv[], char *envp[] ) {
( "configdb" , po::value<string>() , "1 or 3 comma separated config servers" )
( "test" , "just run unit tests" )
( "upgrade" , "upgrade meta data version" )
+ ( "chunkSize" , po::value<int>(), "maximum amount of data per chunk" )
;
@@ -175,6 +176,9 @@ int main(int argc, char* argv[], char *envp[] ) {
return 0;
}
+ if ( params.count( "chunkSize" ) ){
+ Chunk::MaxChunkSize = params["chunkSize"].as<int>() * 1024 * 1024;
+ }
if ( params.count( "test" ) ){
logLevel = 5;

0 comments on commit 67575ac

Please sign in to comment.