colo.c (6214231abde01119d3084a67262d35e909bd9414) colo.c (24525e93c17aabdd88df893f1ceecc37e8b289f3)
1/*
2 * COarse-grain LOck-stepping Virtual Machines for Non-stop Service (COLO)
3 * (a.k.a. Fault Tolerance or Continuous Replication)
4 *
5 * Copyright (c) 2016 HUAWEI TECHNOLOGIES CO., LTD.
6 * Copyright (c) 2016 FUJITSU LIMITED
7 * Copyright (c) 2016 Intel Corporation
8 *

--- 207 unchanged lines hidden (view full) ---

216 }
217 }
218
219 g_hash_table_insert(connection_track_table, new_key, conn);
220 }
221
222 return conn;
223}
1/*
2 * COarse-grain LOck-stepping Virtual Machines for Non-stop Service (COLO)
3 * (a.k.a. Fault Tolerance or Continuous Replication)
4 *
5 * Copyright (c) 2016 HUAWEI TECHNOLOGIES CO., LTD.
6 * Copyright (c) 2016 FUJITSU LIMITED
7 * Copyright (c) 2016 Intel Corporation
8 *

--- 207 unchanged lines hidden (view full) ---

216 }
217 }
218
219 g_hash_table_insert(connection_track_table, new_key, conn);
220 }
221
222 return conn;
223}
224
225bool connection_has_tracked(GHashTable *connection_track_table,
226 ConnectionKey *key)
227{
228 Connection *conn = g_hash_table_lookup(connection_track_table, key);
229
230 return conn ? true : false;
231}