diff options
Diffstat (limited to 'src/db/pkgbases.rs')
| -rw-r--r-- | src/db/pkgbases.rs | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/db/pkgbases.rs b/src/db/pkgbases.rs index 8373024..0f711a7 100644 --- a/src/db/pkgbases.rs +++ b/src/db/pkgbases.rs @@ -81,6 +81,16 @@ pub fn set_aur_head(writer: &Writer, pkgbase_id: i64, head: &str, mirror: &str) } +/// Compare-and-set the accepted-release pointer. +/// +/// Test-tier only, and the reason is worth keeping next to it: production +/// performs this CAS inside a transaction through `cas_accepted_release_in`, +/// which is what `pipeline::publish` calls at publish.rs:208. This standalone +/// form takes a `Writer` and is called by nothing in the crate — `tests/db.rs` +/// alone pins that the pointer moves once and refuses the second time. The two +/// names differ by three characters, which is exactly how a name-match census +/// once credited this function with a production caller it never had. +#[cfg(feature = "test-support")] pub fn cas_accepted_release( writer: &Writer, pkgbase_id: i64, |
