9 Commits

Author SHA1 Message Date
Jingyu Zhou
2d2a2144f4 Update copyright years to 2013-2026 (#12653)
No functional changes.
2026-01-22 10:49:41 -08:00
gxglass
326ff63483 Split out about 2000 lines from NativeAPI.actor.cpp to DatabaseContext.actor.cpp (#12379)
Attempting to reduce max source file size to a more reasonable 4000 lines, to start with.
These methods are mostly DatabaseContext member functions so this seems like a no-brainer.

The rationale for this is mostly self-evident but rdar://160903696 has some additional notes.

Testing in progress:
20250919-205905-gglass-1364d752d341f4e4 compressed=True data_size=41575837 duration=6130944 ended=100000 fail=1 fail_fast=10 max_runs=100000 pass=99999 priority=100 remaining=0 runtime=0:57:39 sanity=False started=100000 stopped=20250919-215644 submitted=20250919-205905 timeout=5400 username=gglass

The one failure was this: fdbserver -r simulation -s 424077837 -b on -f tests/slow/BackupCorrectnessPartitioned.toml
reproduces on main without this PR. Filed rdar://160972142 for that.

* move initial batch of DatabaseContext methods to DatabaseContext.actor.cpp

* another batch of functions NativeAPI.actor.cpp to DatabaseContext.actor.cpp

* Split out printable() methods to a separate file, and ongoing migration of DatabaseContext methods to its own file

* add Printable.cpp, methods split out from NativeAPI

* add a header to eliminate ugly random prototypes in source files for getSourceVersion

* move more DatabaseContext methods

* move more code from NativeAPI.actor.cpp to DatabaseContext.actor.cpp

* formatting
2025-09-19 15:51:48 -07:00
gxglass
7246d10455 Misc cleanups and comment updates from reading code (#12280)
* Remove code which has been behind #if 0 for > 5 years

* Separate open() from read() failures, and avoid potentially leaking fds

* Minor refactor to remove some distracting #ifdefs

* Add comment

* Add some META-FIXME comments about suspicious dated FIXME comments.
Also add one long straight up FIXME comment about a commented out code block
that looks suspicious.  Discuss other ways that the code in question could be structured.

* Add a link to a doc page describing DEBUG_DETERMINISM

* Format updates

* Save 2 lines of code

* Remove useless comment

* Remove long-commented out code; remove useless comments; request a comment

* Remove obvious comments; request comments about non-obvious stuff

* Request comments explaining protocols

* Comment updates

* Rename tlog-spilling.md.html to tlog-spilling.md so that github renders it

* Remove broken link

* Revert "Remove broken link"

This reverts commit 6f90eff6ce.

* Revert "Rename tlog-spilling.md.html to tlog-spilling.md so that github renders it"

This reverts commit b57a922489.

* Remove broken link and unnecessary assertion about required background; add an explanation for why the user is reading raw markdown

* Update provisional comment, and remove long-commented out code which we think is not necessary.

* Add one small explanatory comment

---------

Co-authored-by: Gideon Glass <gglass_glass@apple.com>
2025-07-31 10:05:44 -07:00
Syed Paymaan Raza
c3e7542cda Update end year in copyright header 2024-08-02 09:40:11 -07:00
sfc-gh-tclinkenbeard
a71099471b Update copyright header dates 2022-03-21 13:36:23 -07:00
A.J. Beamon
ed8d3f163c Rename hgVersion to sourceVersion. 2019-11-15 12:26:51 -08:00
Robert Escriva
268093a96d Adjust all includes to be relative to the root.
Remove the use of relative paths.  A header at foo/bar.h could be included by
files under foo/ with "bar.h", but would be included everywhere else as
"foo/bar.h".  Adjust so that every include references such a header with the
latter form.

Signed-off-by: Robert Escriva <rescriva@dropbox.com>
2018-10-19 17:35:33 +00:00
Alec Grieser
0bae9880f1 remove trailing whitespace from our copyright headers ; fixed formatting of python setup.py 2018-02-21 10:25:11 -08:00
FDB Dev Team
a674cb4ef4 Initial repository commit 2017-05-25 13:48:44 -07:00