History log of /5.5.2/kv_engine/engines/ep/src/blob.cc (Results 1 - 4 of 4)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
Revision tags: v7.0.2, v6.6.3, v7.0.1, v7.0.0, v6.6.2, v6.5.2, v6.6.1, v6.0.5, v6.6.0, v6.5.1, v6.0.4, v6.5.0, v6.0.3, v5.5.4, v5.5.5, v5.5.6, v6.0.1, v5.5.3, v6.0.0, v5.1.3, v5.5.2, v5.5.1, v5.1.2
# 4451984b 13-Jun-2018 Sriram Ganesan <sriram@couchbase.com>

MB-30097: Use valueSize() instead of using size directly

The higher order bit of the size of a Blob will be set if the value if
uncompressible. The valueSize() function will clear the bi

MB-30097: Use valueSize() instead of using size directly

The higher order bit of the size of a Blob will be set if the value if
uncompressible. The valueSize() function will clear the bit and return
the actual size of the value. The valueSize() function needs to be used
in the copy contructor of the Blob to use a memcpy instead of using
the size variable directly.

Change-Id: I7745190e83c1ee97c4fdefc3ac06473627159549
Reviewed-on: http://review.couchbase.org/95566
Well-Formed: Build Bot <build@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


Revision tags: v5.1.1, v5.0.1, v5.1.0, v5.0.0
# 70c0f1d2 07-Jul-2017 Daniel Owen <owend@couchbase.com>

MB-23264: Remove datatype from Blob

We keep a copy of datatype in StoredValue and so we don't need to keep
a duplicate in Blob.

Change-Id: Iefba7baa83f2480d0d5a809d265e1b59b774b

MB-23264: Remove datatype from Blob

We keep a copy of datatype in StoredValue and so we don't need to keep
a duplicate in Blob.

Change-Id: Iefba7baa83f2480d0d5a809d265e1b59b774b537
Reviewed-on: http://review.couchbase.org/80390
Reviewed-by: Dave Rigby <daver@couchbase.com>
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...


# 1546849c 06-Jul-2017 James Harrison <00jamesh@gmail.com>

MB-25143: Make Blob::Copy allocate the correct size

It previously allocated 2 more bytes than it should have.

It used Blob::getSize(), which returns

size + sizeof(Blob)

MB-25143: Make Blob::Copy allocate the correct size

It previously allocated 2 more bytes than it should have.

It used Blob::getSize(), which returns

size + sizeof(Blob)
^ 12

However, the original allocation size is calculated in
getAllocationSize() as a value equivalent to

sizeof(Blob) + size - sizeof(Blob(0, 0).data)
^ 12 ^ 2

as data is a char[2] used for padding.

Change-Id: I9011e3046599334d6fcd2d494f9ef3a20d2c7af7
Reviewed-on: http://review.couchbase.org/80329
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Dave Rigby <daver@couchbase.com>

show more ...


# 700dfb1f 17-May-2017 Dave Rigby <daver@couchbase.com>

Move Blob to its own file - blob.{cc.h}

Change-Id: I6531a55c6a6dabc0cfb2090e37d778d3f3c088e3
Reviewed-on: http://review.couchbase.org/78632
Tested-by: Build Bot <build@couchbase.com>

Move Blob to its own file - blob.{cc.h}

Change-Id: I6531a55c6a6dabc0cfb2090e37d778d3f3c088e3
Reviewed-on: http://review.couchbase.org/78632
Tested-by: Build Bot <build@couchbase.com>
Reviewed-by: Trond Norbye <trond.norbye@gmail.com>

show more ...