Vendor: Samba Team
Packager: Samba Team <samba@samba.org>
Version: 1.2.27
-Release: 203GITHASH
+Release: 204GITHASH
Epoch: 0
License: GNU GPL version 3
Group: System Environment/Daemons
%{_libdir}/libctdb.a
%changelog
+* Fri Jul 29 2011 : Version 1.2.27-204
+ - ctdb delip updates. CQ S1026664
* Mon Jul 25 2011 : Version 1.2.27-203
- Fix a bug with the talloc hierarchy when running takeip/releaseip eventscripts
and talloc_free(vnn)-ing
return -1;
}
+ ret = ctdb_ctrl_del_public_ip(ctdb, TIMELIMIT(), options.pnn, &pub);
+ if (ret != 0) {
+ DEBUG(DEBUG_ERR, ("Unable to del public ip from node %u\n", options.pnn));
+ talloc_free(tmp_ctx);
+ return ret;
+ }
+
if (ips->ips[i].pnn == options.pnn) {
ret = find_other_host_for_public_ip(ctdb, &addr);
if (ret != -1) {
} while (retries < 5 && ret != 0);
if (ret != 0) {
DEBUG(DEBUG_ERR,("Failed to move ip to node %d. Giving up.\n", options.pnn));
- return -1;
+ return 0;
}
}
}
- ret = ctdb_ctrl_del_public_ip(ctdb, TIMELIMIT(), options.pnn, &pub);
- if (ret != 0) {
- DEBUG(DEBUG_ERR, ("Unable to del public ip from node %u\n", options.pnn));
- talloc_free(tmp_ctx);
- return ret;
- }
-
talloc_free(tmp_ctx);
return 0;
}