Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
Per Cederqvist
lyskom-server-ceder-1616-generations-topgit
Commits
5db0f038
Commit
5db0f038
authored
Oct 11, 1998
by
Per Cederqvist
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(cache_sync): Store the previous backup file.
parent
22762253
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
2 deletions
+11
-2
src/server/dbck-cache.c
src/server/dbck-cache.c
+11
-2
No files found.
src/server/dbck-cache.c
View file @
5db0f038
/*
* $Id: dbck-cache.c,v 0.3
3
1998/
08/07 23:07
:01 ceder Exp $
* $Id: dbck-cache.c,v 0.3
4
1998/
10/11 17:20
:01 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
...
...
@@ -33,7 +33,7 @@
*/
static
const
char
*
rcsid
=
"$Id: dbck-cache.c,v 0.3
3
1998/
08/07 23:07
:01 ceder Exp $"
;
rcsid
=
"$Id: dbck-cache.c,v 0.3
4
1998/
10/11 17:20
:01 ceder Exp $"
;
#include "rcs.h"
USE
(
rcsid
);
...
...
@@ -581,6 +581,15 @@ cache_sync(void)
if
(
is_clean
(
param
.
datafile_name
)
)
{
if
(
is_clean
(
param
.
backupfile_name
))
{
if
(
rename
(
param
.
backupfile_name
,
param
.
backupfile_name_2
)
!=
0
)
{
log
(
"pre_sync: can't do extra backup.
\n
"
);
}
}
if
(
rename
(
param
.
datafile_name
,
param
.
backupfile_name
)
!=
0
)
log
(
"WARNING: cache_sync: can't backup.
\n
"
);
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment