From 2d889608946c0e8a91bd38162ceeaf1166779921 Mon Sep 17 00:00:00 2001
From: lrknox <lrknox>
Date: Wed, 25 Jan 2017 21:42:20 -0600
Subject: Commit Vailin's fix for the h5format_convert test failure.
 DAILYTEST-256 #2.

Tested on emu, kituo, mayll, ostrich, and osx1011dev with previously failing test configurations.
---
 src/H5C.c | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/src/H5C.c b/src/H5C.c
index 4adee6d..22cb0df 100644
--- a/src/H5C.c
+++ b/src/H5C.c
@@ -1594,6 +1594,11 @@ done:
         HGOTO_ERROR(H5E_CACHE, H5E_SYSTEM, FAIL, "an extreme sanity check failed on exit.\n")
 #endif /* H5C_DO_EXTREME_SANITY_CHECKS */
 
+    if(ret_value < 0 && entry_ptr->tag_info) {
+        if(H5C__untag_entry(cache_ptr, entry_ptr) < 0)
+            HDONE_ERROR(H5E_CACHE, H5E_CANTREMOVE, FAIL, "can't remove entry from tag list")
+    }
+
     FUNC_LEAVE_NOAPI(ret_value)
 } /* H5C_insert_entry() */
 
-- 
cgit v0.12