Uploaded image for project: 'Doctrine DBAL'
  1. Doctrine DBAL
  2. DBAL-436

Logger should specify connection used in a master/slave situation

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Invalid
    • Affects Version/s: 2.3.2
    • Fix Version/s: 2.3.3
    • Component/s: None
    • Security Level: All
    • Labels:
      None

      Description

      Suppose there is a master connection with four slaves specified. Connections are being handled by the Doctrine\DBAL\Connections\MasterSlaveConnection class. Under the current implementation, all queries are logged under the "master" connection, even queries that are routed to the slaves by the Doctrine\DBAL\Connections\MasterSlaveConnection class.

      Since slave connections are separate, distinct connections, queries should be logged appropriately under their respective connections.

        Activity

        jarrod Jarrod Nettles created issue -
        jarrod Jarrod Nettles made changes -
        Field Original Value New Value
        Description Suppose there is a master connection with four slaves specified. Connections are being handled by the Doctrine\DBAL\Connections\MasterSlaveConnection class.

        Under the current implementation, all queries are logged under the "master" connection, even queries that are routed to the slaves by the Doctrine\DBAL\Connections\MasterSlaveConnection class.

        Since slave connections are separate, distinct connections, queries should be logged appropriately under their respective connections.
        Suppose there is a master connection with four slaves specified. Connections are being handled by the Doctrine\DBAL\Connections\MasterSlaveConnection class. Under the current implementation, all queries are logged under the "master" connection, even queries that are routed to the slaves by the Doctrine\DBAL\Connections\MasterSlaveConnection class.

        Since slave connections are separate, distinct connections, queries should be logged appropriately under their respective connections.
        beberlei Benjamin Eberlei made changes -
        Status Open [ 1 ] Resolved [ 5 ]
        Resolution Invalid [ 6 ]

          People

          • Assignee:
            beberlei Benjamin Eberlei
            Reporter:
            jarrod Jarrod Nettles
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: