Commit Graph

3513 Commits

Author SHA1 Message Date
Alex Miller de89f9be71
Merge pull request #999 from apkar/fix-make-build
Fix Make build.
2019-01-03 13:46:42 -08:00
Alex Miller 7c6e012c13
Merge pull request #996 from apkar/cmake-cleanup
Move Java specific setup into bindings/java/CMakeLists.txt
2019-01-03 13:19:49 -08:00
Bhaskar Muppana 448e654a03 Fix Make build. 2019-01-03 13:14:02 -08:00
Evan Tschannen 4901e37b8f
Merge pull request #983 from alexmiller-apple/compilationfixes
Various minor fixes
2019-01-03 10:01:05 -08:00
Bhaskar Muppana 5a8419e5cf Move Java specific setup into bindings/java/CMakeLists.txt
and s/SET/set
2019-01-02 21:19:08 -08:00
Bhaskar Muppana aa2a76ef4c
Merge pull request #981 from alexmiller-apple/cmake
Add a CMake build system
2019-01-02 18:50:15 -08:00
Alex Miller 0d06c08350
Merge pull request #993 from szhou1234/deprecate_dmcs
Prefer MCS instead of DMCS which has been deprecated in Mono
2019-01-02 17:37:01 -06:00
Alec Grieser d9584aeddf
Merge pull request #994 from ajbeamon/fix-add-paretheses-to-bitwise-ops
Add parentheses to bitwise ops (turned up by clang after recent change)
2019-01-02 15:11:24 -08:00
Alex Miller 665f33a194
Removing whitespace introduced by GitHub UI 2019-01-02 17:11:11 -06:00
Alex Miller df810d181f
Change required CMake version to 3.12 2019-01-02 17:09:21 -06:00
mpilman a31df1b0a6 Addressed comments from pull requests
- Moved some larger sections in CMakeLists.txt into separate files
- Fixed an include issue on OS X
- Fixed boost version
- Use PROJECT_VERSION by default instead of using versions.target
2019-01-02 13:32:26 -08:00
A.J. Beamon d8f33a2419 Add parentheses to bitwise ops (turned up by clang after recent change) 2019-01-02 10:15:59 -08:00
Simon Zhou f8657f5cde Prefer MCS instead of DMCS which has been deprecated in Mono 2019-01-01 18:53:54 -08:00
Alex Miller 73f53f9861
Merge pull request #991 from atn34/replace-ampersand-operator
Replace & operator with variadic function
2018-12-30 22:51:59 -06:00
Alex Miller f02426938d
Merge pull request #992 from szhou1234/fix_null
Avoid null check to get rid of build error on Mac
2018-12-30 22:19:35 -06:00
Simon Zhou 7edf221986 Avoid null check 2018-12-28 13:09:04 -08:00
anoyes 6a4d87802b Replace & operator with variadic function 2018-12-28 11:33:42 -08:00
Steve Atherton 9881b1d074
Merge pull request #977 from alexmiller-apple/abspath
Use abspath when dealing with the simulator file-cache
2018-12-20 14:56:38 -08:00
Xin Dong 6d278e466b
Merge pull request #985 from dongxinEric/docs/clarifications-for-tls-docs
Resolves issue #984: made some clarifications in TLS docs.
2018-12-20 14:33:06 -08:00
Alex Miller 464dc6c7b2
Apply suggestions from code review
Co-Authored-By: dongxinEric <jiangzian1987dx@gmail.com>
2018-12-20 14:31:11 -08:00
Xin Dong b00b07c5ed Resolves #984: made some clarifications in TLS docs. 2018-12-20 14:09:56 -08:00
Alex Miller f88d5f56ff Fix copyright header and use c++11 for now. 2018-12-17 23:50:33 -08:00
Alex Miller bfab7c150a Require PageHeader to be 36 bytes, and don't use magic numbers. 2018-12-17 13:37:44 -08:00
Alex Miller b0f9aab1de
Merge pull request #979 from xumengpanda/mengxu/teamcollection-release-osx-build-fix
TeamCollection: Fix build in osX
2018-12-14 15:12:46 -08:00
Alex Miller b4b7f382a7 Fix issues that a newer compiler warned about. 2018-12-14 14:43:50 -08:00
Meng Xu 486a7b04fa TeamCollection: Fix build in osX
In osX, we cannot adding unsigned long to a string to append to the string.
2018-12-14 13:44:11 -08:00
Markus Pilman 4ae701d8a9 minor bugfix to look up correct filename in cache
(manually cherry-picked from flat-buffers branch)
2018-12-13 22:21:25 -08:00
Markus Pilman 0207831fd6 Use abspath when dealing with the simulator file-cache
The simulator uses a hash table to cache all open files to make sure
that several simulated processes don't open the file more than once.
This currently doesn't work properly and deleted files are often kept
open forever. As a result, we often ran out of file descriptors.

The problem is luckily quite simple: files are often opened with an
absolute path but later a relativ path is passed for deletion. This
is not working because the map that is used to store the file
descriptors is not aware of paths - so deleted files are often not
removed from this map. The fix that works for us is to just always
work with absolute paths when adding and removing files from this map.
2018-12-13 22:21:06 -08:00
Alex Miller a982b9da72 Additional changes from a merge commit. 2018-12-13 17:13:41 -08:00
Markus Pilman 879cb31fa2 first version of debian build 2018-12-13 15:57:12 -08:00
Markus Pilman 1007708dfb RPM package now building correctly 2018-12-13 15:56:45 -08:00
Markus Pilman 0b8af89826 Added missing dependency between boostProject and boost_target 2018-12-13 15:56:11 -08:00
Markus Pilman f13ad0d50a install fdb service with rpm and add dependencies 2018-12-13 15:55:53 -08:00
Markus Pilman c654b1bb61 First version of working rpm packages 2018-12-13 15:55:31 -08:00
Markus Pilman 8e5f62011a Compiler flags for Windows (generated via cmake-converter script)
I don't have access to a windows machine, so I am flying blind here.
This means that these options are completely untested
2018-12-13 15:54:55 -08:00
Markus Pilman f7a87e52d9 Use system boost if installed 2018-12-13 15:53:08 -08:00
Alex Miller 550daa05f8 Default configuration now builds. 2018-12-13 15:52:27 -08:00
Markus Pilman df0f491c29 Some more improvements to the build and preparations for packaging 2018-12-13 15:04:13 -08:00
Markus Pilman f8eac70700 Fixed C bindings DLLEXPORT and Java bindings 2018-12-13 14:59:36 -08:00
Markus Pilman 5fafeaf219 added bindings to cmake build 2018-12-13 14:54:38 -08:00
Markus Pilman 4833afea53 CMake compiles fdb c bindings 2018-12-13 14:54:13 -08:00
Alex Miller e70e59a895 Change some file locations. 2018-12-13 14:53:19 -08:00
Markus Pilman c06bb33730 CMake compiles all binaries except for bindings 2018-12-13 14:15:44 -08:00
Markus Pilman dce290909d fdbserver now compiling 2018-12-13 14:13:47 -08:00
A.J. Beamon bd52f8cbd6
Merge pull request #959 from bluk/fix-go-bindings-warning
Fix Go bindings possible nested comment warnings
2018-12-13 17:09:40 -05:00
mpilman 51beb8b48c fdbrpc compiling with cmake 2018-12-13 14:02:16 -08:00
mpilman f5fcb666c5 flow compiling with cmake on OS X 2018-12-13 13:58:06 -08:00
Bryant Luk 2379552aea
Fix Go bindings possible nested comment warnings
When using the Go bindings in a project, you can get compilation
warnings for the `/*` in the comment blocks. These warnings seem
unnecessary.

Warning is:

\# github.com/apple/foundationdb/bindings/go/src/fdb
In file included from _cgo_export.c:4:
cgo-gcc-export-header-prolog:43:1: warning: '/*' within block comment [-Wcomment]
cgo-gcc-export-header-prolog:44:1: warning: '/*' within block comment [-Wcomment]
2018-12-13 15:41:01 -06:00
Evan Tschannen d9626895b1
Merge pull request #964 from xumengpanda/mengxu/teamcollection-release
TeamCollection: Use machine teams to create server teams to increase availability at scale when a machine has multiple servers
2018-12-13 13:18:54 -08:00
Meng Xu 79d94f78f1 TeamCollection: Improve code efficiency
Further improve code efficiency by

1) Avoid rebuild machine locality map when machine locality is changed.
This may leave the global machine locality map stale.
This is ok as long as we do not use the global map to validate
the machine team follows the locality policy.

2) Use ASSERT_WE_THINK instead of ASSERT to avoid runtime overhead.
ASSERT_WE_THINK will only validate the condition in simulation mode.

Signed-off-by: Meng Xu <meng_xu@apple.com>
2018-12-12 22:38:38 -08:00