@ -281,6 +281,9 @@ add_subdirectory(third-party/gtest-1.7.0/fused-src/gtest)
# M a i n l i b r a r y s o u r c e c o d e
set ( SOURCES
c a c h e / c l o c k _ c a c h e . c c
c a c h e / l r u _ c a c h e . c c
c a c h e / s h a r d e d _ c a c h e . c c
d b / b u i l d e r . c c
d b / c . c c
d b / c o l u m n _ f a m i l y . c c
@ -290,7 +293,6 @@ set(SOURCES
d b / c o m p a c t i o n _ j o b . c c
d b / c o m p a c t i o n _ p i c k e r . c c
d b / c o n v e n i e n c e . c c
d b / d b f o r m a t . c c
d b / d b _ f i l e s n a p s h o t . c c
d b / d b _ i m p l . c c
d b / d b _ i m p l _ w r i t e . c c
@ -302,9 +304,10 @@ set(SOURCES
d b / d b _ i m p l _ r e a d o n l y . c c
d b / d b _ i n f o _ d u m p e r . c c
d b / d b _ i t e r . c c
d b / d b f o r m a t . c c
d b / e v e n t _ h e l p e r s . c c
d b / e x t e r n a l _ s s t _ f i l e _ i n g e s t i o n _ j o b . c c
d b / e x p e r i m e n t a l . c c
d b / e x t e r n a l _ s s t _ f i l e _ i n g e s t i o n _ j o b . c c
d b / f i l e _ i n d e x e r . c c
d b / f l u s h _ j o b . c c
d b / f l u s h _ s c h e d u l e r . c c
@ -332,11 +335,32 @@ set(SOURCES
d b / w r i t e _ b a t c h _ b a s e . c c
d b / w r i t e _ c o n t r o l l e r . c c
d b / w r i t e _ t h r e a d . c c
e n v / e n v . c c
e n v / e n v _ c h r o o t . c c
e n v / e n v _ h d f s . c c
e n v / m e m e n v . c c
m e m t a b l e / h a s h _ c u c k o o _ r e p . c c
m e m t a b l e / h a s h _ l i n k l i s t _ r e p . c c
m e m t a b l e / h a s h _ s k i p l i s t _ r e p . c c
m e m t a b l e / s k i p l i s t r e p . c c
m e m t a b l e / v e c t o r r e p . c c
m o n i t o r i n g / h i s t o g r a m . c c
m o n i t o r i n g / h i s t o g r a m _ w i n d o w i n g . c c
m o n i t o r i n g / i n s t r u m e n t e d _ m u t e x . c c
m o n i t o r i n g / i o s t a t s _ c o n t e x t . c c
m o n i t o r i n g / p e r f _ c o n t e x t . c c
m o n i t o r i n g / p e r f _ l e v e l . c c
m o n i t o r i n g / s t a t i s t i c s . c c
m o n i t o r i n g / t h r e a d _ s t a t u s _ i m p l . c c
m o n i t o r i n g / t h r e a d _ s t a t u s _ u p d a t e r . c c
m o n i t o r i n g / t h r e a d _ s t a t u s _ u t i l . c c
m o n i t o r i n g / t h r e a d _ s t a t u s _ u t i l _ d e b u g . c c
o p t i o n s / c f _ o p t i o n s . c c
o p t i o n s / d b _ o p t i o n s . c c
o p t i o n s / o p t i o n s . c c
o p t i o n s / o p t i o n s _ h e l p e r . c c
o p t i o n s / o p t i o n s _ p a r s e r . c c
o p t i o n s / o p t i o n s _ s a n i t y _ c h e c k . c c
p o r t / s t a c k _ t r a c e . c c
t a b l e / a d a p t i v e _ t a b l e _ f a c t o r y . c c
t a b l e / b l o c k . c c
@ -357,66 +381,45 @@ set(SOURCES
t a b l e / i n d e x _ b u i l d e r . c c
t a b l e / i t e r a t o r . c c
t a b l e / m e r g i n g _ i t e r a t o r . c c
t a b l e / s s t _ f i l e _ w r i t e r . c c
t a b l e / m e t a _ b l o c k s . c c
t a b l e / p a r t i t i o n e d _ f i l t e r _ b l o c k . c c
t a b l e / p e r s i s t e n t _ c a c h e _ h e l p e r . c c
t a b l e / p l a i n _ t a b l e _ b u i l d e r . c c
t a b l e / p l a i n _ t a b l e _ f a c t o r y . c c
t a b l e / p l a i n _ t a b l e _ i n d e x . c c
t a b l e / p l a i n _ t a b l e _ k e y _ c o d i n g . c c
t a b l e / p l a i n _ t a b l e _ r e a d e r . c c
t a b l e / p e r s i s t e n t _ c a c h e _ h e l p e r . c c
t a b l e / s s t _ f i l e _ w r i t e r . c c
t a b l e / t a b l e _ p r o p e r t i e s . c c
t a b l e / t w o _ l e v e l _ i t e r a t o r . c c
t o o l s / s s t _ d u m p _ t o o l . c c
t o o l s / d b _ b e n c h _ t o o l . c c
t o o l s / d u m p / d b _ d u m p _ t o o l . c c
t o o l s / l d b _ c m d . c c
t o o l s / l d b _ t o o l . c c
t o o l s / s s t _ d u m p _ t o o l . c c
u t i l / a r e n a . c c
u t i l / a u t o _ r o l l _ l o g g e r . c c
u t i l / b l o o m . c c
u t i l / c f _ o p t i o n s . c c
u t i l / c l o c k _ c a c h e . c c
u t i l / c o d i n g . c c
u t i l / c o m p a c t i o n _ j o b _ s t a t s _ i m p l . c c
u t i l / c o m p a r a t o r . c c
u t i l / c o n c u r r e n t _ a r e n a . c c
u t i l / c r c 3 2 c . c c
u t i l / d b _ o p t i o n s . c c
u t i l / d e l e t e _ s c h e d u l e r . c c
u t i l / d y n a m i c _ b l o o m . c c
u t i l / e n v . c c
u t i l / e n v _ c h r o o t . c c
u t i l / e n v _ h d f s . c c
u t i l / e v e n t _ l o g g e r . c c
u t i l / f i l e _ u t i l . c c
u t i l / f i l e _ r e a d e r _ w r i t e r . c c
u t i l / f i l e _ u t i l . c c
u t i l / f i l e n a m e . c c
u t i l / s s t _ f i l e _ m a n a g e r _ i m p l . c c
u t i l / f i l t e r _ p o l i c y . c c
u t i l / h a s h . c c
u t i l / h i s t o g r a m . c c
u t i l / h i s t o g r a m _ w i n d o w i n g . c c
u t i l / i n s t r u m e n t e d _ m u t e x . c c
u t i l / i o s t a t s _ c o n t e x t . c c
u t i l / l r u _ c a c h e . c c
t o o l s / l d b _ c m d . c c
t o o l s / l d b _ t o o l . c c
u t i l / a u t o _ r o l l _ l o g g e r . c c
u t i l / l o g g i n g . c c
u t i l / l o g _ b u f f e r . c c
u t i l / m e m e n v . c c
u t i l / l o g g i n g . c c
u t i l / m u r m u r h a s h . c c
u t i l / o p t i o n s . c c
u t i l / o p t i o n s _ h e l p e r . c c
u t i l / o p t i o n s _ p a r s e r . c c
u t i l / o p t i o n s _ s a n i t y _ c h e c k . c c
u t i l / p e r f _ c o n t e x t . c c
u t i l / p e r f _ l e v e l . c c
u t i l / r a n d o m . c c
u t i l / r a t e _ l i m i t e r . c c
u t i l / s h a r d e d _ c a c h e . c c
u t i l / s l i c e . c c
u t i l / s t a t i s t i c s . c c
u t i l / s s t _ f i l e _ m a n a g e r _ i m p l . c c
u t i l / s t a t u s . c c
u t i l / s t a t u s _ m e s s a g e . c c
u t i l / s t r i n g _ u t i l . c c
@ -424,15 +427,14 @@ set(SOURCES
u t i l / t e s t u t i l . c c
u t i l / t h r e a d _ l o c a l . c c
u t i l / t h r e a d p o o l _ i m p . c c
u t i l / t h r e a d _ s t a t u s _ i m p l . c c
u t i l / t h r e a d _ s t a t u s _ u p d a t e r . c c
u t i l / t h r e a d _ s t a t u s _ u t i l . c c
u t i l / t h r e a d _ s t a t u s _ u t i l _ d e b u g . c c
u t i l / t r a n s a c t i o n _ t e s t _ u t i l . c c
u t i l / x x h a s h . c c
u t i l i t i e s / b a c k u p a b l e / b a c k u p a b l e _ d b . c c
u t i l i t i e s / b l o b _ d b / b l o b _ d b . c c
u t i l i t i e s / c h e c k p o i n t / c h e c k p o i n t . c c
u t i l i t i e s / c o l _ b u f _ d e c o d e r . c c
u t i l i t i e s / c o l _ b u f _ e n c o d e r . c c
u t i l i t i e s / c o l u m n _ a w a r e _ e n c o d i n g _ u t i l . c c
u t i l i t i e s / c o m p a c t i o n _ f i l t e r s / r e m o v e _ e m p t y v a l u e _ c o m p a c t i o n f i l t e r . c c
u t i l i t i e s / d a t e _ t i e r e d / d a t e _ t i e r e d _ d b _ i m p l . c c
u t i l i t i e s / d o c u m e n t / d o c u m e n t _ d b . c c
@ -444,10 +446,10 @@ set(SOURCES
u t i l i t i e s / l e v e l d b _ o p t i o n s / l e v e l d b _ o p t i o n s . c c
u t i l i t i e s / l u a / r o c k s _ l u a _ c o m p a c t i o n _ f i l t e r . c c
u t i l i t i e s / m e m o r y / m e m o r y _ u t i l . c c
u t i l i t i e s / m e r g e _ o p e r a t o r s / m a x . c c
u t i l i t i e s / m e r g e _ o p e r a t o r s / p u t . c c
u t i l i t i e s / m e r g e _ o p e r a t o r s / s t r i n g _ a p p e n d / s t r i n g a p p e n d . c c
u t i l i t i e s / m e r g e _ o p e r a t o r s / s t r i n g _ a p p e n d / s t r i n g a p p e n d 2 . c c
u t i l i t i e s / m e r g e _ o p e r a t o r s / p u t . c c
u t i l i t i e s / m e r g e _ o p e r a t o r s / m a x . c c
u t i l i t i e s / m e r g e _ o p e r a t o r s / u i n t 6 4 a d d . c c
u t i l i t i e s / o p t i o n _ c h a n g e _ m i g r a t i o n / o p t i o n _ c h a n g e _ m i g r a t i o n . c c
u t i l i t i e s / o p t i o n s / o p t i o n s _ u t i l . c c
@ -460,20 +462,17 @@ set(SOURCES
u t i l i t i e s / s i m u l a t o r _ c a c h e / s i m _ c a c h e . c c
u t i l i t i e s / s p a t i a l d b / s p a t i a l _ d b . c c
u t i l i t i e s / t a b l e _ p r o p e r t i e s _ c o l l e c t o r s / c o m p a c t _ o n _ d e l e t i o n _ c o l l e c t o r . c c
u t i l i t i e s / t r a n s a c t i o n s / o p t i m i s t i c _ t r a n s a c t i o n _ i m p l . c c
u t i l i t i e s / t r a n s a c t i o n s / o p t i m i s t i c _ t r a n s a c t i o n _ d b _ i m p l . c c
u t i l i t i e s / t r a n s a c t i o n s / o p t i m i s t i c _ t r a n s a c t i o n _ i m p l . c c
u t i l i t i e s / t r a n s a c t i o n s / t r a n s a c t i o n _ b a s e . c c
u t i l i t i e s / t r a n s a c t i o n s / t r a n s a c t i o n _ i m p l . c c
u t i l i t i e s / t r a n s a c t i o n s / t r a n s a c t i o n _ d b _ i m p l . c c
u t i l i t i e s / t r a n s a c t i o n s / t r a n s a c t i o n _ d b _ m u t e x _ i m p l . c c
u t i l i t i e s / t r a n s a c t i o n s / t r a n s a c t i o n _ i m p l . c c
u t i l i t i e s / t r a n s a c t i o n s / t r a n s a c t i o n _ l o c k _ m g r . c c
u t i l i t i e s / t r a n s a c t i o n s / t r a n s a c t i o n _ u t i l . c c
u t i l i t i e s / t t l / d b _ t t l _ i m p l . c c
u t i l i t i e s / w r i t e _ b a t c h _ w i t h _ i n d e x / w r i t e _ b a t c h _ w i t h _ i n d e x . c c
u t i l i t i e s / w r i t e _ b a t c h _ w i t h _ i n d e x / w r i t e _ b a t c h _ w i t h _ i n d e x _ i n t e r n a l . c c
u t i l i t i e s / c o l _ b u f _ e n c o d e r . c c
u t i l i t i e s / c o l _ b u f _ d e c o d e r . c c
u t i l i t i e s / c o l u m n _ a w a r e _ e n c o d i n g _ u t i l . c c
$ < T A R G E T _ O B J E C T S : b u i l d _ v e r s i o n > )
if ( WIN32 )
@ -488,8 +487,8 @@ if(WIN32)
else ( )
list ( APPEND SOURCES
p o r t / p o r t _ p o s i x . c c
u t i l / e n v _ p o s i x . c c
u t i l / i o _ p o s i x . c c )
e n v / e n v _ p o s i x . c c
e n v / i o _ p o s i x . c c )
endif ( )
if ( WIN32 )
@ -549,42 +548,45 @@ else()
endif ( )
set ( TESTS
c a c h e / c a c h e _ t e s t . c c
c a c h e / l r u _ c a c h e _ t e s t . c c
d b / c o l u m n _ f a m i l y _ t e s t . c c
d b / c o m p a c t _ f i l e s _ t e s t . c c
d b / c o m p a c t i o n _ i t e r a t o r _ t e s t . c c
d b / c o m p a c t i o n _ j o b _ t e s t . c c
d b / c o m p a c t i o n _ j o b _ s t a t s _ t e s t . c c
d b / c o m p a c t i o n _ j o b _ t e s t . c c
d b / c o m p a c t i o n _ p i c k e r _ t e s t . c c
d b / c o m p a r a t o r _ d b _ t e s t . c c
d b / c o r r u p t i o n _ t e s t . c c
d b / c u c k o o _ t a b l e _ d b _ t e s t . c c
d b / d b _ b a s i c _ t e s t . c c
d b / d b _ b l o c k _ c a c h e _ t e s t . c c
d b / d b _ b l o o m _ f i l t e r _ t e s t . c c
d b / d b _ c o m p a c t i o n _ f i l t e r _ t e s t . c c
d b / d b _ c o m p a c t i o n _ t e s t . c c
d b / d b _ d y n a m i c _ l e v e l _ t e s t . c c
d b / d b _ f l u s h _ t e s t . c c
d b / d b _ i n p l a c e _ u p d a t e _ t e s t . c c
d b / d b _ i o _ f a i l u r e _ t e s t . c c
d b / d b _ i t e r _ t e s t . c c
d b / d b _ i t e r a t o r _ t e s t . c c
d b / d b _ l o g _ i t e r _ t e s t . c c
d b / d b _ m e m t a b l e _ t e s t . c c
d b / d b _ m e r g e _ o p e r a t o r _ t e s t . c c
d b / d b _ o p t i o n s _ t e s t . c c
d b / d b _ p r o p e r t i e s _ t e s t . c c
d b / d b _ r a n g e _ d e l _ t e s t . c c
d b / d b _ s s t _ t e s t . c c
d b / d b _ t a b l e _ p r o p e r t i e s _ t e s t . c c
d b / d b _ t a i l i n g _ i t e r _ t e s t . c c
d b / d b _ t e s t . c c
d b / d b _ t e s t 2 . c c
d b / d b _ b l o c k _ c a c h e _ t e s t . c c
d b / d b _ b l o o m _ f i l t e r _ t e s t . c c
d b / d b _ f l u s h _ t e s t . c c
d b / d b _ i t e r a t o r _ t e s t . c c
d b / d b _ r a n g e _ d e l _ t e s t . c c
d b / d b _ s s t _ t e s t . c c
d b / e x t e r n a l _ s s t _ f i l e _ b a s i c _ t e s t . c c
d b / e x t e r n a l _ s s t _ f i l e _ t e s t . c c
d b / d b _ u n i v e r s a l _ c o m p a c t i o n _ t e s t . c c
d b / d b _ w a l _ t e s t . c c
d b / d b f o r m a t _ t e s t . c c
d b / d e l e t e f i l e _ t e s t . c c
d b / e x t e r n a l _ s s t _ f i l e _ b a s i c _ t e s t . c c
d b / e x t e r n a l _ s s t _ f i l e _ t e s t . c c
d b / f a u l t _ i n j e c t i o n _ t e s t . c c
d b / f i l e _ i n d e x e r _ t e s t . c c
d b / f i l e n a m e _ t e s t . c c
@ -594,8 +596,8 @@ set(TESTS
d b / l o g _ t e s t . c c
d b / m a n u a l _ c o m p a c t i o n _ t e s t . c c
d b / m e m t a b l e _ l i s t _ t e s t . c c
d b / m e r g e _ t e s t . c c
d b / m e r g e _ h e l p e r _ t e s t . c c
d b / m e r g e _ t e s t . c c
d b / o p t i o n s _ f i l e _ t e s t . c c
d b / p e r f _ c o n t e x t _ t e s t . c c
d b / p l a i n _ t a b l e _ d b _ t e s t . c c
@ -610,7 +612,14 @@ set(TESTS
d b / w r i t e _ b a t c h _ t e s t . c c
d b / w r i t e _ c a l l b a c k _ t e s t . c c
d b / w r i t e _ c o n t r o l l e r _ t e s t . c c
d b / d b _ i o _ f a i l u r e _ t e s t . c c
e n v / e n v _ b a s i c _ t e s t . c c
e n v / e n v _ t e s t . c c
e n v / m o c k _ e n v _ t e s t . c c
m o n i t o r i n g / h i s t o g r a m _ t e s t . c c
m o n i t o r i n g / i o s t a t s _ c o n t e x t _ t e s t . c c
m o n i t o r i n g / s t a t i s t i c s _ t e s t . c c
o p t i o n s / o p t i o n s _ s e t t a b l e _ t e s t . c c
o p t i o n s / o p t i o n s _ t e s t . c c
t a b l e / b l o c k _ b a s e d _ f i l t e r _ b l o c k _ t e s t . c c
t a b l e / b l o c k _ t e s t . c c
t a b l e / c u c k o o _ t a b l e _ b u i l d e r _ t e s t . c c
@ -625,38 +634,30 @@ set(TESTS
u t i l / a u t o _ r o l l _ l o g g e r _ t e s t . c c
u t i l / a u t o v e c t o r _ t e s t . c c
u t i l / b l o o m _ t e s t . c c
u t i l / c a c h e _ t e s t . c c
u t i l / c o d i n g _ t e s t . c c
u t i l / c r c 3 2 c _ t e s t . c c
u t i l / d e l e t e _ s c h e d u l e r _ t e s t . c c
u t i l / d y n a m i c _ b l o o m _ t e s t . c c
u t i l / e n v _ b a s i c _ t e s t . c c
u t i l / e n v _ t e s t . c c
u t i l / e v e n t _ l o g g e r _ t e s t . c c
u t i l / f i l e l o c k _ t e s t . c c
u t i l / f i l e _ r e a d e r _ w r i t e r _ t e s t . c c
u t i l / f i l e l o c k _ t e s t . c c
u t i l / h e a p _ t e s t . c c
u t i l / h i s t o g r a m _ t e s t . c c
u t i l / i o s t a t s _ c o n t e x t _ t e s t . c c
u t i l / l r u _ c a c h e _ t e s t . c c
u t i l / m o c k _ e n v _ t e s t . c c
u t i l / o p t i o n s _ s e t t a b l e _ t e s t . c c
u t i l / o p t i o n s _ t e s t . c c
u t i l / r a t e _ l i m i t e r _ t e s t . c c
u t i l / s l i c e _ t r a n s f o r m _ t e s t . c c
u t i l / s t a t i s t i c s _ t e s t . c c
u t i l / t h r e a d _ l i s t _ t e s t . c c
u t i l / t h r e a d _ l o c a l _ t e s t . c c
u t i l i t i e s / b a c k u p a b l e / b a c k u p a b l e _ d b _ t e s t . c c
u t i l i t i e s / b l o b _ d b / b l o b _ d b _ t e s t . c c
u t i l i t i e s / c h e c k p o i n t / c h e c k p o i n t _ t e s t . c c
u t i l i t i e s / c o l u m n _ a w a r e _ e n c o d i n g _ t e s t . c c
u t i l i t i e s / d a t e _ t i e r e d / d a t e _ t i e r e d _ t e s t . c c
u t i l i t i e s / d o c u m e n t / d o c u m e n t _ d b _ t e s t . c c
u t i l i t i e s / d o c u m e n t / j s o n _ d o c u m e n t _ t e s t . c c
u t i l i t i e s / o b j e c t _ r e g i s t r y _ t e s t . c c
u t i l i t i e s / g e o d b / g e o d b _ t e s t . c c
u t i l i t i e s / l u a / r o c k s _ l u a _ t e s t . c c
u t i l i t i e s / m e m o r y / m e m o r y _ t e s t . c c
u t i l i t i e s / m e r g e _ o p e r a t o r s / s t r i n g _ a p p e n d / s t r i n g a p p e n d _ t e s t . c c
u t i l i t i e s / o b j e c t _ r e g i s t r y _ t e s t . c c
u t i l i t i e s / o p t i o n _ c h a n g e _ m i g r a t i o n / o p t i o n _ c h a n g e _ m i g r a t i o n _ t e s t . c c
u t i l i t i e s / o p t i o n s / o p t i o n s _ u t i l _ t e s t . c c
u t i l i t i e s / p e r s i s t e n t _ c a c h e / h a s h _ t a b l e _ t e s t . c c
@ -668,8 +669,6 @@ set(TESTS
u t i l i t i e s / t r a n s a c t i o n s / t r a n s a c t i o n _ t e s t . c c
u t i l i t i e s / t t l / t t l _ t e s t . c c
u t i l i t i e s / w r i t e _ b a t c h _ w i t h _ i n d e x / w r i t e _ b a t c h _ w i t h _ i n d e x _ t e s t . c c
u t i l i t i e s / c o l u m n _ a w a r e _ e n c o d i n g _ t e s t . c c
u t i l i t i e s / l u a / r o c k s _ l u a _ t e s t . c c
)
if ( WITH_LIBRADOS )
list ( APPEND TESTS utilities/env_librados_test.cc )
@ -678,7 +677,7 @@ endif()
set ( BENCHMARKS
t o o l s / d b _ b e n c h . c c
t a b l e / t a b l e _ r e a d e r _ b e n c h . c c
u t i l / c a c h e _ b e n c h . c c
c a c h e / c a c h e _ b e n c h . c c
d b / m e m t a b l e r e p _ b e n c h . c c
u t i l i t i e s / c o l u m n _ a w a r e _ e n c o d i n g _ e x p . c c
u t i l i t i e s / p e r s i s t e n t _ c a c h e / h a s h _ t a b l e _ b e n c h . c c )
@ -694,10 +693,10 @@ endforeach(sourcefile ${BENCHMARKS})
# a n d l i n k e d t o t e s t s . A d d t e s t o n l y c o d e t h a t i s n o t # i f d e f e d f o r R e l e a s e h e r e .
set ( TESTUTIL_SOURCE
d b / d b _ t e s t _ u t i l . c c
e n v / m o c k _ e n v . c c
m o n i t o r i n g / t h r e a d _ s t a t u s _ u p d a t e r _ d e b u g . c c
t a b l e / m o c k _ t a b l e . c c
u t i l / m o c k _ e n v . c c
u t i l / f a u l t _ i n j e c t i o n _ t e s t _ e n v . c c
u t i l / t h r e a d _ s t a t u s _ u p d a t e r _ d e b u g . c c
)
# t e s t u t i l i t i e s a r e o n l y b u i l d i n d e b u g
enable_testing ( )