Commit Graph

37 Commits

Author SHA1 Message Date
Eric Milkie
5a9e2ad0b1 compact is no longer experimental 2011-12-01 15:50:58 -05:00
Eric Milkie
6619cce4ea SERVER-3791 compact now restarts the extent sizing algorithm
The 'compact' operation sequentially copies all the records in the namespace into a new extent. Since this operation creates no new data,
the standard extent logarithmic sizing should not apply; the algorithm is only to accomodate data growth.
Instead, we will start back at the beginning with the smallest extent size.  This will allow for freed-extent reuse over multiple compacts.
Note that the only way to have freed extents in a database is to run compact, so the first time you run it, there will always be new extents created.
Subsequent compacts will potentially reuse the freed extents.

The compact speed unit test's time comparison seemed backwards to me, so I fixed it and made it a real assert.
I also bumped up the padding in the padding test so that it would trigger a new extent and thus have a material increase in the storage size.
2011-12-01 10:14:20 -05:00
Eric Milkie
5a4ffdd879 unused variable 2011-11-28 17:03:19 -05:00
Eric Milkie
de0da34d72 fix formatting 2011-11-28 10:24:08 -05:00
dwight
a4604dd864 compact was not doing its extent page in correctly. 2011-11-23 18:08:09 -05:00
Dwight
eab212db97 preparation for having a clean collection object 2011-11-17 14:40:14 -05:00
dwight
1306fee268 fix warning 2011-11-15 13:17:20 -05:00
dwight
a6b6549fef allow specification of padding on a compact command 2011-11-13 17:20:42 -05:00
Brandon Diamond
1dc8aa72b6 SERVER-4055: Added validation to compact code 2011-10-27 16:57:52 -04:00
dwight
08c3888312 make a long running operation terminate if the client has disconnected. we check for this at the beginning
of every request but intra request.  if a request will run for a very long time this is bad.

probably not for backporting -- might be nuances need to smoke for a while

also some yield code cleaning, really just making it easier to read.
2011-10-11 15:16:01 -04:00
dwight
310e250fd3 cleaning. we want to use pch.h as little as possible (zero eventually)
this a small step that way
2011-10-02 13:38:29 -04:00
Kristina
c84f98ab80 maintenance mode for commands SERVER-3427 2011-07-29 11:48:09 -04:00
gregs
e5d902202f full API change to command interface, add options SERVER-3405 2011-07-27 15:59:27 -04:00
Dwight
14711f4ef1 use legacy compare for legacy index building 2011-06-16 16:35:07 -04:00
dwight
c0384332f2 towards proper --quotafiles support 2011-05-23 20:03:24 -04:00
Dwight
f8b902ebc6 compact command is now live in 1.9 2011-04-12 12:10:54 -04:00
Dwight
a354d60a16 compact cmd progress meter 2011-04-12 12:09:31 -04:00
Dwight
1c896c3e22 typo 2011-04-07 16:37:58 -04:00
Dwight
dcca06c478 make compact killable 2011-04-07 16:34:10 -04:00
Dwight
b1298d7b4a compact better reporting on invalid objects 2011-04-07 16:11:23 -04:00
Dwight
4d9e44c1ee validate during commit 2011-04-06 16:40:41 -04:00
Dwight
d8f79a52f2 compact faster 2011-04-05 15:59:45 -04:00
Dwight
9c65e3ed8b just text 2011-04-05 14:19:43 -04:00
Dwight
baa419929f compact bug fix 2011-04-05 14:14:27 -04:00
Mathias Stearn
ee79aa11f6 use str::equals rather than strcmp 2011-04-04 17:14:11 -04:00
Dwight
6e400fee9f DRY 2011-04-04 16:41:58 -04:00
Dwight
7b9d591162 towards compact 2011-04-04 16:30:23 -04:00
dwight
0ff487c7d1 compact fix 2011-04-04 14:16:37 -04:00
Mathias Stearn
63aa80450c Cant compare char* using != 2011-04-04 13:08:08 -04:00
Dwight
1d3134107f fix err numbers 2011-04-04 13:05:46 -04:00
dwight
1d46a7e4ba towards compact cmd still in prog 2011-04-04 12:38:38 -04:00
Dwight
a694a71690 compact beginnings 2011-03-17 16:47:37 -04:00
Eliot Horowitz
b828d21630 ran astyle SERVER-2304 2011-01-04 00:40:41 -05:00
Dwight
0648d61288 move include to top of file from bottom 2010-11-04 09:00:39 -04:00
dwight
7325bae86f compile 2010-10-17 19:18:41 -04:00
dwight
7922967fc7 towards compact cmd 2010-10-16 20:10:47 -04:00
Dwight
0b5f10dd21 new file preliminary 2010-10-06 14:09:53 -04:00