mirror of
https://github.com/GothenburgBitFactory/taskwarrior.git
synced 2025-06-26 10:54:26 +02:00
Remove locking
config (#3519)
This flag is no longer needed. It was used to control file locking on the *.data files. Co-authored-by: Sebastian Carlos <sebastiancarlos@gmail.com>
This commit is contained in:
parent
5ab51271b0
commit
b70d8ef574
6 changed files with 1 additions and 19 deletions
|
@ -209,14 +209,6 @@ Note that the TASKDATA environment variable overrides this setting.
|
||||||
.B hooks.location=$HOME/.task/hooks
|
.B hooks.location=$HOME/.task/hooks
|
||||||
This is a path to the hook scripts directory. By default it is ~/.task/hooks.
|
This is a path to the hook scripts directory. By default it is ~/.task/hooks.
|
||||||
|
|
||||||
.TP
|
|
||||||
.B locking=1
|
|
||||||
Determines whether to use file locking when accessing the database. Defaults to
|
|
||||||
"1". Solaris users who store the database on an NFS mount may need to set
|
|
||||||
locking to "0". Note that there is danger in setting this value to "0" -
|
|
||||||
another program (or another instance of task) may write to the database at the
|
|
||||||
same time.
|
|
||||||
|
|
||||||
.TP
|
.TP
|
||||||
.B gc=1
|
.B gc=1
|
||||||
Can be used to temporarily suspend garbage collection (gc), so that task IDs
|
Can be used to temporarily suspend garbage collection (gc), so that task IDs
|
||||||
|
|
|
@ -22,9 +22,8 @@ SHADOW_FILE=$(task _get rc.shadow.file)
|
||||||
# rc.detection=off Disables terminal size detection
|
# rc.detection=off Disables terminal size detection
|
||||||
# rc.gc=off Disables GC, thus not changing IDs unexpectedly
|
# rc.gc=off Disables GC, thus not changing IDs unexpectedly
|
||||||
# rc.color=off Disable color in the shadow file
|
# rc.color=off Disable color in the shadow file
|
||||||
# rc.locking=off Disable file locking, to prevent race condition
|
|
||||||
# rc.hooks=off Disable hooks, to prevent race condition
|
# rc.hooks=off Disable hooks, to prevent race condition
|
||||||
task $SHADOW_COMMAND rc.detection=off rc.gc=off rc.color=off rc.locking=off rc.hooks=off > $SHADOW_FILE 2>/dev/null
|
task $SHADOW_COMMAND rc.detection=off rc.gc=off rc.color=off rc.hooks=off > $SHADOW_FILE 2>/dev/null
|
||||||
if [[ $? != 0 ]]
|
if [[ $? != 0 ]]
|
||||||
then
|
then
|
||||||
echo Could not create $SHADOW_FILE
|
echo Could not create $SHADOW_FILE
|
||||||
|
|
|
@ -78,7 +78,6 @@ std::string configurationDefaults =
|
||||||
"\n"
|
"\n"
|
||||||
"# Files\n"
|
"# Files\n"
|
||||||
"data.location=~/.task\n"
|
"data.location=~/.task\n"
|
||||||
"locking=1 # Use file-level locking\n"
|
|
||||||
"gc=1 # Garbage-collect data files - DO NOT CHANGE unless you are sure\n"
|
"gc=1 # Garbage-collect data files - DO NOT CHANGE unless you are sure\n"
|
||||||
"exit.on.missing.db=0 # Whether to exit if ~/.task is not found\n"
|
"exit.on.missing.db=0 # Whether to exit if ~/.task is not found\n"
|
||||||
"hooks=1 # Master control switch for hooks\n"
|
"hooks=1 # Master control switch for hooks\n"
|
||||||
|
|
|
@ -177,12 +177,6 @@ int CmdDiagnostics::execute (std::string& output)
|
||||||
<< env
|
<< env
|
||||||
<< '\n';
|
<< '\n';
|
||||||
|
|
||||||
out << " Locking: "
|
|
||||||
<< (Context::getContext ().config.getBoolean ("locking")
|
|
||||||
? "Enabled"
|
|
||||||
: "Disabled")
|
|
||||||
<< '\n';
|
|
||||||
|
|
||||||
out << " GC: "
|
out << " GC: "
|
||||||
<< (Context::getContext ().config.getBoolean ("gc")
|
<< (Context::getContext ().config.getBoolean ("gc")
|
||||||
? "Enabled"
|
? "Enabled"
|
||||||
|
|
|
@ -176,7 +176,6 @@ int CmdShow::execute (std::string& output)
|
||||||
" limit"
|
" limit"
|
||||||
" list.all.projects"
|
" list.all.projects"
|
||||||
" list.all.tags"
|
" list.all.tags"
|
||||||
" locking"
|
|
||||||
" nag"
|
" nag"
|
||||||
" news.version"
|
" news.version"
|
||||||
" obfuscate"
|
" obfuscate"
|
||||||
|
|
|
@ -52,7 +52,6 @@ class TestDiagnostics(TestCase):
|
||||||
self.tap(out)
|
self.tap(out)
|
||||||
self.assertRegex(out, r"Compliance:\s+C\+\+17")
|
self.assertRegex(out, r"Compliance:\s+C\+\+17")
|
||||||
self.assertIn("edlin", out)
|
self.assertIn("edlin", out)
|
||||||
self.assertIn("Locking", out)
|
|
||||||
|
|
||||||
def test_64bit_time_t(self):
|
def test_64bit_time_t(self):
|
||||||
"""Test that time_t has size of 64 bits"""
|
"""Test that time_t has size of 64 bits"""
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue