| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
|
|
|
|
|
|
| |
produced by:
hits="$(git grep -n MONGO_DISALLOW_COPYING | cut -d: -f1 )"
for f in "$hits"; do
sed -i.orig '
s/^\( *\)MONGO_DISALLOW_COPYING(\(.*\));/\1\2(const \2\&) = delete;\n\1\2\& operator=(const \2\&) = delete;/;
' $f
done
|
|
|
|
|
|
| |
Remove leading comments that are just stating the filename.
Move any file-level comments below the copyright banner.
Remove leading blank lines.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
When we did the data view integration into murmurhash3 (to make it big
endian safe) we missed that murmurhash3 uses negative offsets of
pointers. Because DataView took size_t for offsetting parameters, this
involved wrapping pointers around (adding very large numbers to pointers
to produce negative offsets). That's UB, and newer ubsan caught it.
This change fixes that by making the DataView offsetting logic ptrdiff_t
based.
It also introduces test vectors for murmurhash3 that I've used to verify
that we haven't changed its output.
|
| |
|
| |
|
|
|
|
|
|
|
| |
The mongo::Duration type does overflow checking on casts and arithmetic.
This patch also moves DESTRUCTOR_GUARD out of assert_util.h into
destructor_guard.h in order to break an include cycle with duration.h.
|
|
|
|
|
|
| |
For some reason gcc is unhappy with the included callsites which use
bufreader, but only in the presence of the enterprise module.
Initialize them to quiet the compiler warnings.
|
|
|
|
| |
Allows BufReader to use DataType primitives to read little endian.
|
| |
|
| |
|
|
|
|
| |
MONGO_DISALLOW_COPYING
|
| |
|
| |
|
| |
|
|
|
|
| |
This is needed for correct handling of missing values.
|
|
|
|
|
|
| |
Note that some of this is just scaffolding that will be replaced with
better implementations later. In particular, most of the I/O code will
be replaced.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Warnings:
* incrementing a bool (deprecated)
* hiding virtual method with overload (usually incorrect signature)
* operator ?: and << precedence issues
|
|
|