Skip to contentSkip to conversation

opensm/osm_opensm.c: Conditionalize sa_db_file_dump on sa_db_dump option

PATCH In review Hal Rosenstock 2 participants 2 messages Mar 25, 2011 – Mar 27, 2011 1 message not in the archive InfiniBand

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 opensm/osm_opensm.c: Conditionalize sa_db_file_dump on sa_db_dump option

in osm_opensm_destroy

---

opensm/opensm/osm_opensm.c +2 -1
index 0de5fa4..5007dd2 100644
@@ -273,7 +273,8 @@ void osm_opensm_destroy(IN osm_opensm_t * p_osm)
     cl_disp_shutdown(&p_osm->disp);
 
     /* dump SA DB */
-    osm_sa_db_file_dump(p_osm);
+    if (p_osm->subn.opt.sa_db_dump)
+        osm_sa_db_file_dump(p_osm);
 
     /* do the destruction in reverse order as init */
     destroy_plugins(p_osm);

--
To unsubscribe from this list: send the line "unsubscribe linux-rdma" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

A message that is not in the archive (sent off-list or not yet received): 4D8D12DB.2060805-LDSdmyG8hGV8YrgS2mwiifqBs+8SCbDb@public.gmane.org