X-Git-Url: https://git.whamcloud.com/?p=fs%2Flustre-release.git;a=blobdiff_plain;f=lustre%2Ftarget%2Fupdate_records.c;h=a460e3d228244770cb74750d48d71cdf9fc6ee30;hp=632e07151648b63afd7c63a3b0ce5a35371fed86;hb=4f53536d002c13886210b672b657795baa067144;hpb=b1f01a709ffe66d82f13ad421d319432d235c05b diff --git a/lustre/target/update_records.c b/lustre/target/update_records.c index 632e071..a460e3d 100644 --- a/lustre/target/update_records.c +++ b/lustre/target/update_records.c @@ -69,7 +69,9 @@ void update_records_dump(const struct update_records *records, ops = &records->ur_ops; params = update_records_get_params(records); - CDEBUG(mask, "ops = %d params_count = %d\n", records->ur_update_count, + CDEBUG(mask, "master transno = "LPU64" batchid = "LPU64" flags = %x" + " ops = %d params = %d\n", records->ur_master_transno, + records->ur_batchid, records->ur_flags, records->ur_update_count, records->ur_param_count); if (records->ur_update_count == 0) @@ -904,6 +906,17 @@ static void update_key_fini(const struct lu_context *ctx, struct lu_context_key *key, void *data) { struct update_thread_info *info = data; + struct thandle_exec_args *args = &info->uti_tea; + int i; + + for (i = 0; i < args->ta_alloc_args; i++) { + if (args->ta_args[i] != NULL) + OBD_FREE_PTR(args->ta_args[i]); + } + + if (args->ta_args != NULL) + OBD_FREE(args->ta_args, sizeof(args->ta_args[0]) * + args->ta_alloc_args); if (info->uti_tur.tur_update_records != NULL) OBD_FREE_LARGE(info->uti_tur.tur_update_records,