Vlad Zolotarov
6a51e6fe33
tests: compound_test: fix the 'narrowing' compilation error on Power
...
'bytes' has int8_t as a base type and 0xff value is out of this type's range.
Use the corresponding signed value instead.
Signed-off-by: Vlad Zolotarov <vladz@scylladb.com >
2017-12-08 13:38:13 -05:00
Jesse Haber-Kucharsky
fb0866ca20
Move thread_local declarations out of main.cc
...
Since `disk-error-handler.hh` defines these global variables `extern`,
it makes sense to declare them in the `disk-error-handler.cc` instead of
`main.cc`.
This means that test files don't have to declare them.
Fixes #2735 .
Signed-off-by: Jesse Haber-Kucharsky <jhaberku@scylladb.com >
Message-Id: <1eed120bfd9bb3647e03fe05b60c871de2df2a86.1511810004.git.jhaberku@scylladb.com >
2017-11-27 20:27:42 +01:00
Duarte Nunes
576ea421dc
compound_compat: Don't assume compoundness
...
This patch changes some factory functions so that they don't assume
the schema is compound.
This enables some code simplification in
sstables::write_column_name().
Signed-off-by: Duarte Nunes <duarte@scylladb.com >
2017-11-23 19:14:15 +00:00
Paweł Dziepak
28c105e4a7
sstables: avoid copying key components
2017-07-26 14:38:27 +01:00
Tomasz Grabiec
18a057aa81
compound_compat: Return composite from serialize_value()
...
To make the code more type-safe. Also, mark constructor from bytes
explicit.
2017-03-28 18:10:39 +02:00
Avi Kivity
7faf2eed2f
build: support for linking statically with boost
...
Remove assumptions in the build system about dynamically linked boost unit
tests. Includes seastar update which would have otherwise broken the
build.
2016-10-26 08:51:21 +03:00
Raphael S. Carvalho
026853fabb
tests: add test to check composite validity
...
Signed-off-by: Raphael S. Carvalho <raphaelsc@scylladb.com >
2016-09-02 10:49:30 -03:00
Duarte Nunes
674afc52bc
compound_test: Test singular composite_view::explode()
...
This patch adds a test case for composite_view::explode() called on a
non-compound composite.
Signed-off-by: Duarte Nunes <duarte@scylladb.com >
Message-Id: <1468353393-3074-1-git-send-email-duarte@scylladb.com >
2016-07-13 11:23:24 +02:00
Duarte Nunes
0b87d16699
composite: Add unit tests
...
Signed-off-by: Duarte Nunes <duarte@scylladb.com >
2016-07-11 16:55:11 +02:00
Pekka Enberg
38a54df863
Fix pre-ScyllaDB copyright statements
...
People keep tripping over the old copyrights and copy-pasting them to
new files. Search and replace "Cloudius Systems" with "ScyllaDB".
Message-Id: <1460013664-25966-1-git-send-email-penberg@scylladb.com >
2016-04-08 08:12:47 +03:00
Benoît Canet
1fb9a48ac5
exception: Optionally shutdown communication on I/O errors.
...
I/O errors cannot be fixed by Scylla the only solution
is to shutdown the database communications.
Signed-off-by: Benoît Canet <benoit@scylladb.com >
Message-Id: <1458154098-9977-1-git-send-email-benoit@scylladb.com >
2016-03-17 15:02:52 +02:00
Avi Kivity
d5cf0fb2b1
Add license notices
2015-09-20 10:43:39 +03:00
Avi Kivity
c720cddc5c
tests: mv tests/urchin/* -> tests/
...
Now that seastar is in a separate repository, we can use the tests/
directory.
2015-08-05 14:16:52 +03:00