summaryrefslogtreecommitdiff
path: root/util/mongoutils
diff options
context:
space:
mode:
authorEliot Horowitz <eliot@10gen.com>2010-09-23 18:59:01 -0400
committerEliot Horowitz <eliot@10gen.com>2010-09-23 19:08:00 -0400
commitd2ba8a5579a2f7a1876f315afc42902382458a8e (patch)
tree0cf50606bc561ed5a3bd25ce8a342002c91cfebb /util/mongoutils
parent5d9149a33ae066d08fb1a46671163bb3f9cad9de (diff)
downloadmongo-d2ba8a5579a2f7a1876f315afc42902382458a8e.tar.gz
set version for indexes and hookup for IndexPlugin SERVER-1845
Diffstat (limited to 'util/mongoutils')
-rw-r--r--util/mongoutils/str.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/util/mongoutils/str.h b/util/mongoutils/str.h
index 2028264bd9c..d2c538492ee 100644
--- a/util/mongoutils/str.h
+++ b/util/mongoutils/str.h
@@ -75,6 +75,8 @@ namespace mongoutils {
return strncmp(s.c_str()+x-l, p.c_str(), l) == 0;
}
+ inline bool equals( const char * a , const char * b ) { return strcmp( a , b ) == 0; }
+
/** find char x, and return rest of string thereafter, or "" if not found */
inline const char * after(const char *s, char x) {
const char *p = strchr(s, x);