Commit Graph

3 Commits

Author SHA1 Message Date
Trevor Clinkenbeard fe42e6fd79 Enforce clang-tidy braces around long statements 2026-06-22 23:01:11 -07:00
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