summaryrefslogtreecommitdiff
path: root/ctdb
diff options
context:
space:
mode:
authorAndreas Schneider <asn@samba.org>2023-03-22 09:33:04 +0100
committerAndreas Schneider <asn@cryptomilk.org>2023-03-24 07:01:31 +0000
commit59af5049997aa793ab3ea97e6a410da5d5367feb (patch)
tree7464d9819b7a7d197c8dd6140fdacf3fb07665d1 /ctdb
parent200bc1f9374c5dd21bc6bd33d3aa7c7d8d77b70f (diff)
downloadsamba-59af5049997aa793ab3ea97e6a410da5d5367feb.tar.gz
ctdb:server: Remove trailing whitespaces in ctdb_recover.c
Signed-off-by: Andreas Schneider <asn@samba.org> Reviewed-by: Martin Schwenke <mschwenke@ddn.com>
Diffstat (limited to 'ctdb')
-rw-r--r--ctdb/server/ctdb_recover.c30
1 files changed, 15 insertions, 15 deletions
diff --git a/ctdb/server/ctdb_recover.c b/ctdb/server/ctdb_recover.c
index 004ddb30efd..1ca05c17f43 100644
--- a/ctdb/server/ctdb_recover.c
+++ b/ctdb/server/ctdb_recover.c
@@ -1,4 +1,4 @@
-/*
+/*
ctdb recovery code
Copyright (C) Andrew Tridgell 2007
@@ -8,12 +8,12 @@
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 3 of the License, or
(at your option) any later version.
-
+
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
-
+
You should have received a copy of the GNU General Public License
along with this program; if not, see <http://www.gnu.org/licenses/>.
*/
@@ -42,7 +42,7 @@
#include "ctdb_cluster_mutex.h"
-int
+int
ctdb_control_getvnnmap(struct ctdb_context *ctdb, uint32_t opcode, TDB_DATA indata, TDB_DATA *outdata)
{
struct ctdb_vnn_map_wire *map;
@@ -89,7 +89,7 @@ ctdb_control_setvnnmap(struct ctdb_context *ctdb, uint32_t opcode, TDB_DATA inda
return 0;
}
-int
+int
ctdb_control_getdbmap(struct ctdb_context *ctdb, uint32_t opcode, TDB_DATA indata, TDB_DATA *outdata)
{
uint32_t i, len;
@@ -634,7 +634,7 @@ int ctdb_deferred_drop_all_ips(struct ctdb_context *ctdb)
/*
set the recovery mode
*/
-int32_t ctdb_control_set_recmode(struct ctdb_context *ctdb,
+int32_t ctdb_control_set_recmode(struct ctdb_context *ctdb,
struct ctdb_req_control_old *c,
TDB_DATA indata, bool *async_reply,
const char **errormsg)
@@ -729,7 +729,7 @@ static int delete_tdb_record(struct ctdb_context *ctdb, struct ctdb_db_context *
{
TDB_DATA key, data, data2;
struct ctdb_ltdb_header *hdr, *hdr2;
-
+
/* these are really internal tdb functions - but we need them here for
non-blocking lock of the freelist */
int tdb_lock_nonblock(struct tdb_context *tdb, int list, int ltype);
@@ -777,7 +777,7 @@ static int delete_tdb_record(struct ctdb_context *ctdb, struct ctdb_db_context *
free(data2.dptr);
return 0;
}
-
+
hdr2 = (struct ctdb_ltdb_header *)data2.dptr;
if (hdr2->rsn > hdr->rsn) {
@@ -867,7 +867,7 @@ static void ctdb_end_recovery_callback(struct ctdb_context *ctdb, int status, vo
/*
recovery has finished
*/
-int32_t ctdb_control_end_recovery(struct ctdb_context *ctdb,
+int32_t ctdb_control_end_recovery(struct ctdb_context *ctdb,
struct ctdb_req_control_old *c,
bool *async_reply)
{
@@ -884,8 +884,8 @@ int32_t ctdb_control_end_recovery(struct ctdb_context *ctdb,
state->c = c;
ret = ctdb_event_script_callback(ctdb, state,
- ctdb_end_recovery_callback,
- state,
+ ctdb_end_recovery_callback,
+ state,
CTDB_EVENT_RECOVERED, "%s", "");
if (ret != 0) {
@@ -1063,7 +1063,7 @@ int32_t ctdb_control_try_delete_records(struct ctdb_context *ctdb, TDB_DATA inda
/* create a blob to send back the records we couldnt delete */
records = (struct ctdb_marshall_buffer *)
- talloc_zero_size(outdata,
+ talloc_zero_size(outdata,
offsetof(struct ctdb_marshall_buffer, data));
if (records == NULL) {
DEBUG(DEBUG_ERR,(__location__ " Out of memory\n"));
@@ -1108,10 +1108,10 @@ int32_t ctdb_control_try_delete_records(struct ctdb_context *ctdb, TDB_DATA inda
}
records->count++;
memcpy(old_size+(uint8_t *)records, rec, rec->length);
- }
+ }
rec = (struct ctdb_rec_data_old *)(rec->length + (uint8_t *)rec);
- }
+ }
*outdata = ctdb_marshall_finish(records);
@@ -1133,7 +1133,7 @@ int32_t ctdb_control_get_capabilities(struct ctdb_context *ctdb, TDB_DATA *outda
outdata->dsize = sizeof(uint32_t);
outdata->dptr = (uint8_t *)capabilities;
- return 0;
+ return 0;
}
/* The recovery daemon will ping us at regular intervals.