Skip to content

Commit

Permalink
rm act on collection links
Browse files Browse the repository at this point in the history
  • Loading branch information
terrywbrady committed Sep 23, 2021
1 parent bd819b3 commit b14f67f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 43 deletions.
22 changes: 1 addition & 21 deletions diagrams/store-admin-force-audit.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: "Storage Admin: Force Audit"
description: "Storage Admin: Force Audit of Object or Collection"
description: "Storage Admin: Force Audit of Object Node"
prevpage: store-admin-del-node-obj
nextpage: store-admin-force-replic
chart: store-admin-force-audit.mmd
Expand All @@ -26,26 +26,6 @@ where
where
ark = ?
)
and
inv_node_id = ?
```

## Force audit reset for collection

```
update
inv_audits a
set
verified = null
where exists (
select 1
from
inv_collections_inv_objects icio
where
icio.inv_object_id = a.inv_object_id
and
icio.inv_collection_id = ?
)
and
inv_node_id = ?
```
22 changes: 0 additions & 22 deletions diagrams/store-admin-force-replic.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,25 +23,3 @@ and
role = 'primary'
```

## Force replic reset for collection

_Mark all objects in the collection as unreplicated. This will notify the replication service to perform replication._

```
update
inv_nodes_inv_objects inio
set
replicated = null
where exists (
select
1
from
inv_collections_inv_objects icio
where
icio.inv_collection_id = ?
and
inio.inv_object_id = icio.inv_object_id
)
and
role = 'primary'
```

0 comments on commit b14f67f

Please sign in to comment.