fix(mongodb): use dedicated count for legacy collections

This commit is contained in:
Guoyu Su authored and GitHub committed 2026-07-13 13:21:50 +08:00
1 parent 03bc87c77a
commit a99a34b4ab
28 files changed
+916 -19

No files matched your search

+5 -1
View File
@@ -6,7 +6,11 @@ use crate::commands::connection::{ensure_connection_writable, AppState};
use dbx_core::db::mongo_driver::MongoDocumentResult;
use dbx_core::document_ops::CollectionInfo;
async fn run_cancellable<T, F>(state: &Arc<AppState>, execution_id: Option<String>, future: F) -> Result<T, String>
pub(crate) async fn run_cancellable<T, F>(
state: &Arc<AppState>,
execution_id: Option<String>,
future: F,
) -> Result<T, String>
where
F: Future<Output = Result<T, String>>,
{