Skip to content

Commit

Permalink
Use workspace constraint when purging object. Refs midgardprojectgh-189
Browse files Browse the repository at this point in the history
  • Loading branch information
piotras committed Feb 5, 2013
1 parent 394fed6 commit 62dd5b6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/midgard_object.c
Original file line number Diff line number Diff line change
Expand Up @@ -3198,7 +3198,11 @@ gboolean _midgard_object_purge(MidgardObject *object, gboolean check_dependents)

dsql = g_string_new("DELETE ");
g_string_append_printf(dsql, "FROM %s WHERE guid='%s' ", table, guid);


if (MGD_CNC_USES_WORKSPACE (mgd)) {
g_string_append_printf(dsql, " AND midgard_ws_id=%d", MGD_CNC_WORKSPACE_ID(mgd));
}

guint size = midgard_quota_get_object_size(object);

/* TODO , libgda, libgda */
Expand Down

0 comments on commit 62dd5b6

Please sign in to comment.