diff options
author | Eliot Horowitz <eliot@10gen.com> | 2010-09-17 11:16:32 -0400 |
---|---|---|
committer | Eliot Horowitz <eliot@10gen.com> | 2010-09-17 11:16:32 -0400 |
commit | d78667f289c6a336b100b629b3feb126d6954d90 (patch) | |
tree | 69ab7077d38f8dd483179d941f04802eff420ab0 /s | |
parent | 690804eeb24e6a42cd1385820ed754d48edbca1c (diff) | |
download | mongo-d78667f289c6a336b100b629b3feb126d6954d90.tar.gz |
track cloned bytes
Diffstat (limited to 's')
-rw-r--r-- | s/d_migrate.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/s/d_migrate.cpp b/s/d_migrate.cpp index 7158e6a0b84..0d66e54e11b 100644 --- a/s/d_migrate.cpp +++ b/s/d_migrate.cpp @@ -708,6 +708,7 @@ namespace mongo { errmsg = ""; numCloned = 0; + clonedBytes = 0; numCatchup = 0; numSteady = 0; @@ -783,6 +784,7 @@ namespace mongo { Helpers::upsert( ns , o ); } numCloned++; + clonedBytes += o.objsize(); } timing.done(3); @@ -869,6 +871,7 @@ namespace mongo { { BSONObjBuilder bb( b.subobjStart( "counts" ) ); bb.append( "cloned" , numCloned ); + bb.append( "clonedBytes" , clonedBytes ); bb.append( "catchup" , numCatchup ); bb.append( "steady" , numSteady ); bb.done(); @@ -952,6 +955,7 @@ namespace mongo { BSONObj max; long long numCloned; + long long clonedBytes; long long numCatchup; long long numSteady; |