You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@subversion.apache.org by iv...@apache.org on 2026/09/19 19:22:49 UTC

svn commit: r1938377 - subversion/trunk/subversion/libsvn_repos

Author: ivan
Date: Sat Sep 19 19:22:48 2026
New Revision: 1938377

Log:
* subversion/libsvn_repos/repos.c
  (fs_upgrade_notify): Call svn_repos_notify_create() with proper ACTION
   parameter instead of using fake value and then updating created
   svn_repos_notify_t instance.

Modified:
   subversion/trunk/subversion/libsvn_repos/repos.c

Modified: subversion/trunk/subversion/libsvn_repos/repos.c
==============================================================================
--- subversion/trunk/subversion/libsvn_repos/repos.c	Sat Sep 19 17:49:34 2026	(r1938376)
+++ subversion/trunk/subversion/libsvn_repos/repos.c	Sat Sep 19 19:22:48 2026	(r1938377)
@@ -1395,24 +1395,27 @@ fs_upgrade_notify(void *baton,
                   apr_pool_t *pool)
 {
   struct fs_upgrade_notify_baton_t *fs_baton = baton;
+  svn_repos_notify_t *notify;
 
-  svn_repos_notify_t *notify = svn_repos_notify_create(
-                                svn_repos_notify_mutex_acquired, pool);
   switch(action)
     {
       case svn_fs_upgrade_pack_revprops:
+        notify = svn_repos_notify_create(svn_repos_notify_pack_revprops, pool);
         notify->shard = number;
-        notify->action = svn_repos_notify_pack_revprops;
+        fs_baton->notify_func(fs_baton->notify_baton, notify, pool);
         break;
 
       case svn_fs_upgrade_cleanup_revprops:
+        notify = svn_repos_notify_create(svn_repos_notify_cleanup_revprops,
+                                         pool);
         notify->shard = number;
-        notify->action = svn_repos_notify_cleanup_revprops;
+        fs_baton->notify_func(fs_baton->notify_baton, notify, pool);
         break;
 
       case svn_fs_upgrade_format_bumped:
+        notify = svn_repos_notify_create(svn_repos_notify_format_bumped, pool);
         notify->revision = (svn_revnum_t)number;
-        notify->action = svn_repos_notify_format_bumped;
+        fs_baton->notify_func(fs_baton->notify_baton, notify, pool);
         break;
 
       default:
@@ -1420,8 +1423,6 @@ fs_upgrade_notify(void *baton,
         SVN_ERR_MALFUNCTION();
     }
 
-  fs_baton->notify_func(fs_baton->notify_baton, notify, pool);
-
   return SVN_NO_ERROR;
 }